[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112120322.6KDmAB1p-lkp@intel.com>
Date: Sun, 12 Dec 2021 03:20:10 +0800
From: kernel test robot <lkp@...el.com>
To: Saravana Kannan <skannan@...eaurora.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Chanwoo Choi <cw00.choi@...sung.com>,
Sibi Sankar <sibis@...eaurora.org>
Subject: [chanwoo:devfreq-testing 2/4]
arch/um/include/asm/processor-generic.h:104:19: error: expected identifier
or '(' before '&' token
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: 5857e3d1820d85e10321ec180ed88e780fd0ec3e
commit: d678890dcdf858c25d2789793a35a81c4311e972 [2/4] PM / devfreq: Add cpu based scaling support to passive governor
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20211212/202112120322.6KDmAB1p-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/?id=d678890dcdf858c25d2789793a35a81c4311e972
git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
git fetch --no-tags chanwoo devfreq-testing
git checkout d678890dcdf858c25d2789793a35a81c4311e972
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/rcupdate.h:30,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from drivers/base/power/main.c:21:
>> arch/um/include/asm/processor-generic.h:104:19: error: expected identifier or '(' before '&' token
104 | #define cpu_data (&boot_cpu_data)
| ^
include/linux/devfreq.h:331:27: note: in expansion of macro 'cpu_data'
331 | struct devfreq_cpu_data *cpu_data[NR_CPUS];
| ^~~~~~~~
In file included from drivers/base/power/main.c:35:
include/linux/devfreq.h:332:1: warning: no semicolon at end of struct or union
332 | };
| ^
--
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
>> arch/um/include/asm/processor-generic.h:104:19: error: expected identifier or '(' before '&' token
104 | #define cpu_data (&boot_cpu_data)
| ^
include/linux/devfreq.h:331:27: note: in expansion of macro 'cpu_data'
331 | struct devfreq_cpu_data *cpu_data[NR_CPUS];
| ^~~~~~~~
In file included from drivers/devfreq/governor_passive.c:16:
include/linux/devfreq.h:332:1: warning: no semicolon at end of struct or union
332 | };
| ^
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
drivers/devfreq/governor_passive.c: In function 'get_target_freq_with_cpufreq':
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:58:29: note: in expansion of macro 'cpu_data'
58 | parent_cpu_data = p_data->cpu_data[cpu];
| ^~~~~~~~
drivers/devfreq/governor_passive.c:50:31: warning: variable 'p_data' set but not used [-Wunused-but-set-variable]
50 | struct devfreq_passive_data *p_data =
| ^~~~~~
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_notifier_call':
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:221:10: note: in expansion of macro 'cpu_data'
221 | !data->cpu_data[freqs->policy->cpu])
| ^~~~~~~~
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:224:26: note: in expansion of macro 'cpu_data'
224 | parent_cpu_data = data->cpu_data[freqs->policy->cpu];
| ^~~~~~~~
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_unregister_notifier':
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:258:29: note: in expansion of macro 'cpu_data'
258 | parent_cpu_data = p_data->cpu_data[cpu];
| ^~~~~~~~
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_register_notifier':
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:291:15: note: in expansion of macro 'cpu_data'
291 | if (p_data->cpu_data[cpu])
| ^~~~~~~~
>> arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:331:11: note: in expansion of macro 'cpu_data'
331 | p_data->cpu_data[cpu] = parent_cpu_data;
| ^~~~~~~~
vim +104 arch/um/include/asm/processor-generic.h
^1da177e4c3f41 include/asm-um/processor-generic.h Linus Torvalds 2005-04-16 103
^1da177e4c3f41 include/asm-um/processor-generic.h Linus Torvalds 2005-04-16 @104 #define cpu_data (&boot_cpu_data)
^1da177e4c3f41 include/asm-um/processor-generic.h Linus Torvalds 2005-04-16 105 #define current_cpu_data boot_cpu_data
d8fb32f4790f2a arch/um/include/asm/processor-generic.h Anton Ivanov 2021-03-12 106 #define cache_line_size() (boot_cpu_data.cache_alignment)
^1da177e4c3f41 include/asm-um/processor-generic.h Linus Torvalds 2005-04-16 107
:::::: The code at line 104 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists