lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110150858.3GKeLSjm-lkp@intel.com>
Date:   Fri, 15 Oct 2021 08:08:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alexei Starovoitov <ast@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ast-bpf:relo_core 2/11] tools/lib/bpf/relo_core.c:50:6: error: no
 previous prototype for 'libbpf_print'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (61330 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ