Hi Daniel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on pm/linux-next]
[also build test WARNING on linux/master linus/master v5.12-rc2 next-20210309]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Daniel-Lezcano/powercap-drivers-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/195420841883f38897ba1e10ff70641da...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Daniel-Lezcano/powercap-drivers-dtpm-Encapsulate-even-more-the-code/20210310-064505
git checkout 195420841883f38897ba1e10ff70641dab0191ba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/arm64/include/asm/numa.h:5,
from arch/arm64/include/asm/mmzone.h:7,
from include/linux/mmzone.h:1037,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cpufreq.h:14,
from drivers/powercap/dtpm_cpu.c:20:
drivers/powercap/dtpm_cpu.c: In function 'scale_pd_power_uw':
> arch/arm64/include/asm/topology.h:36:33: warning: 'cpu'
is used uninitialized in this function [-Wuninitialized]
36 | #define
arch_scale_cpu_capacity topology_get_cpu_scale
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/powercap/dtpm_cpu.c:74:6: note: 'cpu' was declared here
74 | int cpu;
| ^~~
vim +/cpu +36 arch/arm64/include/asm/topology.h
4e63ebe50d456d Dietmar Eggemann 2017-09-26 34
431ead0ff19b44 Dietmar Eggemann 2017-09-26 35 /* Replace task scheduler's default
cpu-invariant accounting */
431ead0ff19b44 Dietmar Eggemann 2017-09-26 @36 #define arch_scale_cpu_capacity
topology_get_cpu_scale
431ead0ff19b44 Dietmar Eggemann 2017-09-26 37
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org