mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexei Starovoitov <ast@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [ast:relo_core 4/9] tools/lib/bpf/relo_core.c:75:6: warning: no previous prototype for 'libbpf_print'
Date: Tue, 14 Sep 2021 12:31:21 +0800	[thread overview]
Message-ID: <202109141214.C8rCVtZt-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head:   5e4dbbcc690eda4eadfb2e46900a55051c5a7f6b
commit: 5b743311a94271672b8c3770aef0a6be426f8a0c [4/9] bpf: Prepare relo_core.c for kernel duty.
config: arc-randconfig-r032-20210913 (attached as .config)
compiler: arceb-elf-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=5b743311a94271672b8c3770aef0a6be426f8a0c
        git remote add ast https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
        git fetch --no-tags ast relo_core
        git checkout 5b743311a94271672b8c3770aef0a6be426f8a0c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

>> tools/lib/bpf/relo_core.c:75:6: warning: no previous prototype for 'libbpf_print' [-Wmissing-prototypes]
      75 | 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:1388:1: warning: the frame size of 1128 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1388 | }
         | ^


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

    68	
    69	enum libbpf_print_level {
    70	        LIBBPF_WARN,
    71	        LIBBPF_INFO,
    72	        LIBBPF_DEBUG,
    73	};
    74	__attribute__((format(printf, 2, 3)))
  > 75	void libbpf_print(enum libbpf_print_level level,
    76			  const char *format, ...)
    77	{
    78	}
    79	#define __pr(level, fmt, ...)	\
    80	do {				\
    81		libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__);	\
    82	} while (0)
    83	

---
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: 34459 bytes --]

                 reply	other threads:[~2021-09-14  4:31 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=202109141214.C8rCVtZt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ast@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®