public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ast-bpf:relo_core 2/11] tools/lib/bpf/relo_core.c:50:6: error: no previous prototype for 'libbpf_print'
@ 2021-10-15  0:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-15  0:08 UTC (permalink / raw)
  To: Alexei Starovoitov; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2281 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head:   f19d8aee9c6849dbfd77bc472b7b5c9bb28f329f
commit: 96649f75bfb209c3562106becb7bed3e37b05c82 [2/11] bpf: Prepare relo_core.c for kernel duty.
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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/ast/bpf.git/commit/?id=96649f75bfb209c3562106becb7bed3e37b05c82
        git remote add ast-bpf https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
        git fetch --no-tags ast-bpf relo_core
        git checkout 96649f75bfb209c3562106becb7bed3e37b05c82
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> tools/lib/bpf/relo_core.c:50:6: error: no previous prototype for 'libbpf_print' [-Werror=missing-prototypes]
      50 | void libbpf_print(enum libbpf_print_level level,
         |      ^~~~~~~~~~~~
   tools/lib/bpf/relo_core.c: In function 'bpf_core_apply_relo_insn':
>> tools/lib/bpf/relo_core.c:1363:1: error: the frame size of 1136 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
    1363 | }
         | ^
   cc1: all warnings being treated as errors


vim +/libbpf_print +50 tools/lib/bpf/relo_core.c

    43	
    44	enum libbpf_print_level {
    45	        LIBBPF_WARN,
    46	        LIBBPF_INFO,
    47	        LIBBPF_DEBUG,
    48	};
    49	__attribute__((format(printf, 2, 3)))
  > 50	void libbpf_print(enum libbpf_print_level level,
    51			  const char *format, ...)
    52	{
    53		va_list args;
    54	
    55		va_start(args, format);
    56		vprintk(format, args);
    57		va_end(args);
    58	}
    59	#define __pr(level, fmt, ...)	\
    60	do {				\
    61		libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__);	\
    62	} while (0)
    63	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61330 bytes --]

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

only message in thread, other threads:[~2021-10-15  0:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-15  0:08 [ast-bpf:relo_core 2/11] tools/lib/bpf/relo_core.c:50:6: error: no previous prototype for 'libbpf_print' 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