]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Compile fix for 32-bit platforms:
authorhselasky <hselasky@FreeBSD.org>
Thu, 12 Nov 2015 09:52:37 +0000 (09:52 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 12 Nov 2015 09:52:37 +0000 (09:52 +0000)
- The Linux timers data field is "unsigned long".

Sponsored by: Mellanox Technologies
MFC after: 2 weeks

sys/dev/mlx5/mlx5_core/mlx5_health.c

index 56f77e8fd7caa8f32e6df74b61a157adc576b0d6..e2c6afb4b3202bc08a872ecbdcd21303a9c9e8a6 100644 (file)
@@ -115,7 +115,7 @@ static void print_health_info(struct mlx5_core_dev *dev)
        printf("mlx5_core: INFO: ""ext_sync 0x%04x\n", read_be16(&h->ext_sync));
 }
 
-static void poll_health(uintptr_t data)
+static void poll_health(unsigned long data)
 {
        struct mlx5_core_dev *dev = (struct mlx5_core_dev *)data;
        struct mlx5_core_health *health = &dev->priv.health;
@@ -155,7 +155,7 @@ void mlx5_start_health_poll(struct mlx5_core_dev *dev)
        health->health = &dev->iseg->health;
        health->health_counter = &dev->iseg->health_counter;
 
-       setup_timer(&health->timer, poll_health, (uintptr_t)dev);
+       setup_timer(&health->timer, poll_health, (unsigned long)dev);
        mod_timer(&health->timer,
                  round_jiffies(jiffies + MLX5_HEALTH_POLL_INTERVAL));
 }