All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:x86/ibt 7/9] kernel/trace/bpf_trace.c:1043:13: error: implicit declaration of function 'is_endbr'
Date: Fri, 7 Feb 2025 01:43:11 +0800	[thread overview]
Message-ID: <202502070106.2vZwK0DT-lkp@intel.com> (raw)

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: sh-randconfig-002-20250206 (https://download.01.org/0day-ci/archive/20250207/202502070106.2vZwK0DT-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250207/202502070106.2vZwK0DT-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/202502070106.2vZwK0DT-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/trace/bpf_trace.c: In function 'get_entry_ip':
>> kernel/trace/bpf_trace.c:1043:13: error: implicit declaration of function 'is_endbr' [-Wimplicit-function-declaration]
    1043 |         if (is_endbr((void *)(fentry_ip - ENDBR_INSN_SIZE)))
         |             ^~~~~~~~
>> kernel/trace/bpf_trace.c:1043:43: error: 'ENDBR_INSN_SIZE' undeclared (first use in this function); did you mean 'MAX_INSN_SIZE'?
    1043 |         if (is_endbr((void *)(fentry_ip - ENDBR_INSN_SIZE)))
         |                                           ^~~~~~~~~~~~~~~
         |                                           MAX_INSN_SIZE
   kernel/trace/bpf_trace.c:1043:43: note: each undeclared identifier is reported only once for each function it appears in


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

                 reply	other threads:[~2025-02-06 17:44 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=202502070106.2vZwK0DT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    /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.