From: Greg Kroah-Hartman Date: Mon, 17 Aug 2015 19:59:42 +0000 (-0700) Subject: staging: wilc1000: fix build warning with setup_timer() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=507d7fc56154031a1d023d74e02ed9d3c4f4da31;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: wilc1000: fix build warning with setup_timer() I forgot to properly cast a pointer to unsigned long in a conversion to setup_timer() which resulted in a build warning. Fix that up. Cc: Johnny Kim Cc: Rachel Kim Cc: Dean Lee Cc: Chris Park Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 078b7d5a128c..66fa677015db 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -6545,7 +6545,8 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) s32Error = WILC_FAIL; goto _fail_mq_; } - setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI, pstrWFIDrv); + setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI, + (unsigned long)pstrWFIDrv); mod_timer(&g_hPeriodicRSSI, jiffies + msecs_to_jiffies(5000)); }