Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [peterz-queue:x86/ibt 7/9] kernel/trace/bpf_trace.c:1043:6: error: call to undeclared function 'is_endbr'; ISO C99 and later do not support implicit function declarations
@ 2025-02-06 17:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-06 17:53 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/ibt
head:   57750f0464beab3927ad570e0c1b5e78c91dd1b6
commit: c5a15175c3560f7ec5cacfca9fd72655b7f55742 [7/9] x86/ibt: Clean up is_endbr()
config: riscv-randconfig-002-20250206 (https://download.01.org/0day-ci/archive/20250207/202502070111.MUfxOmQO-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250207/202502070111.MUfxOmQO-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502070111.MUfxOmQO-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/trace/bpf_trace.c:1043:6: error: call to undeclared function 'is_endbr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1043 |         if (is_endbr((void *)(fentry_ip - ENDBR_INSN_SIZE)))
         |             ^
>> kernel/trace/bpf_trace.c:1043:36: error: use of undeclared identifier 'ENDBR_INSN_SIZE'
    1043 |         if (is_endbr((void *)(fentry_ip - ENDBR_INSN_SIZE)))
         |                                           ^
   kernel/trace/bpf_trace.c:1044:16: error: use of undeclared identifier 'ENDBR_INSN_SIZE'
    1044 |                 fentry_ip -= ENDBR_INSN_SIZE;
         |                              ^
   3 errors generated.


vim +/is_endbr +1043 kernel/trace/bpf_trace.c

  1040	
  1041	static inline unsigned long get_entry_ip(unsigned long fentry_ip)
  1042	{
> 1043		if (is_endbr((void *)(fentry_ip - ENDBR_INSN_SIZE)))
  1044			fentry_ip -= ENDBR_INSN_SIZE;
  1045	
  1046		return fentry_ip;
  1047	}
  1048	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-06 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 17:53 [peterz-queue:x86/ibt 7/9] kernel/trace/bpf_trace.c:1043:6: error: call to undeclared function 'is_endbr'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox