Sparse complains when you cast ints to a 64 bit pointer so I've made this function return a long instead of an int. Here is the Sparse warning: drivers/idle/intel_idle.c: In function ‘intel_idle_cpuidle_devices_init’: drivers/idle/intel_idle.c:525:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 38da9f8..2f38391 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -197,7 +197,7 @@ static struct cpuidle_state atom_cstates[MWAIT_MAX_NUM_CSTATES] = { .enter = &intel_idle }, }; -static int get_driver_data(int cstate) +static long get_driver_data(int cstate) { int driver_data; switch (cstate) { -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html