Compile fix for 32-bit platforms:

- The Linux timers data field is "unsigned long".

Sponsored by:	Mellanox Technologies
MFC after:	2 weeks
This commit is contained in:
hselasky 2015-11-12 09:52:37 +00:00
parent 6db964f7f3
commit 5317c56619

View 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));
}