From: hselasky Date: Thu, 12 Nov 2015 09:52:37 +0000 (+0000) Subject: Compile fix for 32-bit platforms: X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5317c5661946288130ff18c2042a2759be8e557b;p=people%2Fliuw%2Ffreebsd.git Compile fix for 32-bit platforms: - The Linux timers data field is "unsigned long". Sponsored by: Mellanox Technologies MFC after: 2 weeks --- diff --git a/sys/dev/mlx5/mlx5_core/mlx5_health.c b/sys/dev/mlx5/mlx5_core/mlx5_health.c index 56f77e8fd7c..e2c6afb4b32 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_health.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_health.c @@ -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)); }