thermal: devfreq_cooling: Make power a u64
authorJavi Merino <javi.merino@arm.com>
Mon, 2 Nov 2015 19:03:04 +0000 (19:03 +0000)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 05:32:11 +0000 (14:32 +0900)
commit36b24c90ae727a84f90b2673ba79ef2e1c95da33
tree7a4ee6d9507b8acd3cc8ec928d093a81f03ce757
parent590733d25f0fbf91bd419fa60d36191e58f3cad8
thermal: devfreq_cooling: Make power a u64

The prototype of do_div() is:

uint32_t do_div(uint64_t *n, uint32_t base);

Make power u64 to avoid the following warning:

   drivers/thermal/devfreq_cooling.c: In function 'get_dynamic_power':
   drivers/thermal/devfreq_cooling.c:267:2: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/thermal/devfreq_cooling.c:267:2: warning: right shift count >= width of type [enabled by default]
   drivers/thermal/devfreq_cooling.c:267:2: warning: passing argument 1 of '__div64_32' from incompatible pointer type [enabled by default]
   include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'long unsigned int *'

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
[jy0922.shim: apply mainline patch]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/thermal/devfreq_cooling.c