• Javi Merino's avatar
    thermal: devfreq_cooling: Make power a u64 · 61c8e8aa
    Javi Merino authored
    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: default avatarkbuild test robot <fengguang.wu@intel.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Signed-off-by: default avatarJavi Merino <javi.merino@arm.com>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    61c8e8aa
devfreq_cooling.c 14.8 KB