From: kernel test robot <lkp@intel.com>
To: "Madhavan T. Venkataraman" <madvenka@linux.microsoft.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Subject: [madvenka786:orc_v3 20/21] include/linux/ftrace.h:119:6: error: expected identifier or '('
Date: Fri, 20 Jan 2023 18:54:24 +0800 [thread overview]
Message-ID: <202301201855.ORACPe0m-lkp@intel.com> (raw)
tree: https://github.com/madvenka786/linux orc_v3
head: a0c212ed0823caa5a7ec431d3a5ec07b46964384
commit: 1fabd84ba1fcc2dffd5d1c9cdb4844f780947738 [20/21] arm64: Miscellaneous changes required for enabling livepatch
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20230120/202301201855.ORACPe0m-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/madvenka786/linux/commit/1fabd84ba1fcc2dffd5d1c9cdb4844f780947738
git remote add madvenka786 https://github.com/madvenka786/linux
git fetch --no-tags madvenka786 orc_v3
git checkout 1fabd84ba1fcc2dffd5d1c9cdb4844f780947738
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/fsi/fsi-core.c:96:
In file included from include/trace/events/fsi.h:214:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:21:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from drivers/fsi/fsi-core.c:96:
In file included from include/trace/events/fsi.h:214:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:21:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
2 errors generated.
--
In file included from net/sunrpc/sched.c:25:
In file included from include/linux/sunrpc/clnt.h:20:
In file included from include/linux/sunrpc/sched.h:19:
include/linux/sunrpc/xdr.h:753:10: warning: result of comparison of constant 4611686018427387903 with expression of type '__u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
if (len > SIZE_MAX / sizeof(*p))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
In file included from net/sunrpc/sched.c:31:
In file included from include/trace/events/sunrpc.h:2370:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:21:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from net/sunrpc/sched.c:31:
In file included from include/trace/events/sunrpc.h:2370:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:21:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
1 warning and 2 errors generated.
--
In file included from drivers/acpi/processor_idle.c:24:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from drivers/acpi/processor_idle.c:24:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
drivers/acpi/processor_idle.c:1101:12: warning: no previous prototype for function 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes]
int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
^
drivers/acpi/processor_idle.c:1101:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu)
^
static
drivers/acpi/processor_idle.c:1170:12: warning: no previous prototype for function 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes]
int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
^
drivers/acpi/processor_idle.c:1170:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
^
static
2 warnings and 2 errors generated.
--
In file included from kernel/sched/fair.c:55:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/sched/fair.c:55:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
kernel/sched/fair.c:673:5: warning: no previous prototype for function 'sched_update_scaling' [-Wmissing-prototypes]
int sched_update_scaling(void)
^
kernel/sched/fair.c:673:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_update_scaling(void)
^
static
1 warning and 2 errors generated.
--
In file included from drivers/dma/idxd/init.c:23:
In file included from drivers/dma/idxd/idxd.h:15:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from drivers/dma/idxd/init.c:23:
In file included from drivers/dma/idxd/idxd.h:15:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
drivers/dma/idxd/init.c:642:45: warning: shift count >= width of type [-Wshift-count-overflow]
rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
1 warning and 2 errors generated.
--
In file included from kernel/time/hrtimer.c:30:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/time/hrtimer.c:30:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
kernel/time/hrtimer.c:120:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:121:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_TAI] = HRTIMER_BASE_TAI,
^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
4 warnings and 2 errors generated.
--
In file included from kernel/time/posix-stubs.c:13:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/time/posix-stubs.c:13:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
kernel/time/posix-stubs.c:25:17: warning: no previous prototype for function 'sys_ni_posix_timers' [-Wmissing-prototypes]
asmlinkage long sys_ni_posix_timers(void)
^
kernel/time/posix-stubs.c:25:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_ni_posix_timers(void)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/events/core.c:34:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/events/core.c:34:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/events/core.c:43:
include/linux/mman.h:154:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:132:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
--
In file included from kernel/sysctl.c:52:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/sysctl.c:52:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/sysctl.c:54:
In file included from include/linux/nfs_fs.h:31:
In file included from include/linux/sunrpc/auth.h:13:
In file included from include/linux/sunrpc/sched.h:19:
include/linux/sunrpc/xdr.h:753:10: warning: result of comparison of constant 4611686018427387903 with expression of type '__u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
if (len > SIZE_MAX / sizeof(*p))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
--
In file included from kernel/signal.c:30:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
^
arch/x86/include/asm/ftrace.h:65:2: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
In file included from kernel/signal.c:30:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:52:
>> include/linux/ftrace.h:119:6: error: expected identifier or '('
arch/x86/include/asm/ftrace.h:65:35: note: expanded from macro 'ftrace_instruction_pointer_set'
do { (fregs)->regs.ip = (_ip); } while (0)
^
kernel/signal.c:137:37: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 4: ready = signal->sig[3] &~ blocked->sig[3];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:137:19: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 4: ready = signal->sig[3] &~ blocked->sig[3];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:138:30: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
ready |= signal->sig[2] &~ blocked->sig[2];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:138:12: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
ready |= signal->sig[2] &~ blocked->sig[2];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:139:30: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
ready |= signal->sig[1] &~ blocked->sig[1];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:139:12: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
ready |= signal->sig[1] &~ blocked->sig[1];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:143:37: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: ready = signal->sig[1] &~ blocked->sig[1];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
kernel/signal.c:143:19: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: ready = signal->sig[1] &~ blocked->sig[1];
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
8 warnings and 2 errors generated.
..
vim +119 include/linux/ftrace.h
113
114 /*
115 * ftrace_instruction_pointer_set() is to be defined by the architecture
116 * if to allow setting of the instruction pointer from the ftrace_regs
117 * to support live kernel patching.
118 */
> 119 void ftrace_instruction_pointer_set(struct ftrace_regs *fregs,
120 unsigned long pc);
121
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-20 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301201855.ORACPe0m-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=madvenka@linux.microsoft.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sjitindarsingh@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.