* [sashal-linux-stable:pending-5.13 462/570] drivers/cpufreq/cppc_cpufreq.c:276:13: warning: conflicting types for 'cppc_cpufreq_put_cpu_data'
@ 2021-07-18 11:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-18 11:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2862 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.13
head: 0c91fa6be7e9e93e0ff59925e742ebb9d86fb057
commit: b8fe99c7a5fa0b89e7dba24344c839d2e5f938f4 [462/570] cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=b8fe99c7a5fa0b89e7dba24344c839d2e5f938f4
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.13
git checkout b8fe99c7a5fa0b89e7dba24344c839d2e5f938f4
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/cpufreq/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_cpufreq_stop_cpu':
drivers/cpufreq/cppc_cpufreq.c:199:2: error: implicit declaration of function 'cppc_cpufreq_put_cpu_data'; did you mean 'cppc_cpufreq_stop_cpu'? [-Werror=implicit-function-declaration]
199 | cppc_cpufreq_put_cpu_data(policy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| cppc_cpufreq_stop_cpu
drivers/cpufreq/cppc_cpufreq.c: At top level:
>> drivers/cpufreq/cppc_cpufreq.c:276:13: warning: conflicting types for 'cppc_cpufreq_put_cpu_data'
276 | static void cppc_cpufreq_put_cpu_data(struct cpufreq_policy *policy)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/cpufreq/cppc_cpufreq.c:276:13: error: static declaration of 'cppc_cpufreq_put_cpu_data' follows non-static declaration
drivers/cpufreq/cppc_cpufreq.c:199:2: note: previous implicit declaration of 'cppc_cpufreq_put_cpu_data' was here
199 | cppc_cpufreq_put_cpu_data(policy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/cppc_cpufreq_put_cpu_data +276 drivers/cpufreq/cppc_cpufreq.c
275
> 276 static void cppc_cpufreq_put_cpu_data(struct cpufreq_policy *policy)
277 {
278 struct cppc_cpudata *cpu_data = policy->driver_data;
279
280 list_del(&cpu_data->node);
281 free_cpumask_var(cpu_data->shared_cpu_map);
282 kfree(cpu_data);
283 policy->driver_data = NULL;
284 }
285
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 77661 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-18 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18 11:57 [sashal-linux-stable:pending-5.13 462/570] drivers/cpufreq/cppc_cpufreq.c:276:13: warning: conflicting types for 'cppc_cpufreq_put_cpu_data' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.