All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ast-bpf:relo_core 9/19] kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat'
Date: Mon, 15 Nov 2021 07:17:33 +0800	[thread overview]
Message-ID: <202111150730.fJSGk0XH-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head:   f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7
commit: 03c354f8c71c2478c421d5552d284e0befb03861 [9/19] bpf: Prepare relo_core.c for kernel duty.
config: m68k-allyesconfig (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=03c354f8c71c2478c421d5552d284e0befb03861
        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 03c354f8c71c2478c421d5552d284e0befb03861
        # 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>

Note: the ast-bpf/relo_core HEAD f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   kernel/bpf/btf.c: In function 'btf_seq_show':
   kernel/bpf/btf.c:5888:29: error: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    5888 |         seq_vprintf((struct seq_file *)show->target, fmt, args);
         |                             ^~~~~~~~
   kernel/bpf/btf.c: In function 'btf_snprintf_show':
   kernel/bpf/btf.c:5925:9: error: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    5925 |         len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
         |         ^~~
   kernel/bpf/btf.c: At top level:
>> kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat' [-Werror=missing-prototypes]
    6417 | int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/btf.c:6431:8: error: no previous prototype for 'bpf_core_essential_name_len' [-Werror=missing-prototypes]
    6431 | size_t bpf_core_essential_name_len(const char *name)
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/bpf_core_types_are_compat +6417 kernel/bpf/btf.c

  6416	
> 6417	int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id,
  6418				      const struct btf *targ_btf, __u32 targ_id)
  6419	{
  6420		return -EOPNOTSUPP;
  6421	}
  6422	
  6423	static bool bpf_core_is_flavor_sep(const char *s)
  6424	{
  6425		/* check X___Y name pattern, where X and Y are not underscores */
  6426		return s[0] != '_' &&				      /* X */
  6427		       s[1] == '_' && s[2] == '_' && s[3] == '_' &&   /* ___ */
  6428		       s[4] != '_';				      /* Y */
  6429	}
  6430	
> 6431	size_t bpf_core_essential_name_len(const char *name)

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

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

WARNING: multiple messages have this Message-ID (diff)
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-bpf:relo_core 9/19] kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat'
Date: Mon, 15 Nov 2021 07:17:33 +0800	[thread overview]
Message-ID: <202111150730.fJSGk0XH-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head:   f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7
commit: 03c354f8c71c2478c421d5552d284e0befb03861 [9/19] bpf: Prepare relo_core.c for kernel duty.
config: m68k-allyesconfig (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=03c354f8c71c2478c421d5552d284e0befb03861
        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 03c354f8c71c2478c421d5552d284e0befb03861
        # 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>

Note: the ast-bpf/relo_core HEAD f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   kernel/bpf/btf.c: In function 'btf_seq_show':
   kernel/bpf/btf.c:5888:29: error: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    5888 |         seq_vprintf((struct seq_file *)show->target, fmt, args);
         |                             ^~~~~~~~
   kernel/bpf/btf.c: In function 'btf_snprintf_show':
   kernel/bpf/btf.c:5925:9: error: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    5925 |         len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
         |         ^~~
   kernel/bpf/btf.c: At top level:
>> kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat' [-Werror=missing-prototypes]
    6417 | int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/btf.c:6431:8: error: no previous prototype for 'bpf_core_essential_name_len' [-Werror=missing-prototypes]
    6431 | size_t bpf_core_essential_name_len(const char *name)
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/bpf_core_types_are_compat +6417 kernel/bpf/btf.c

  6416	
> 6417	int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id,
  6418				      const struct btf *targ_btf, __u32 targ_id)
  6419	{
  6420		return -EOPNOTSUPP;
  6421	}
  6422	
  6423	static bool bpf_core_is_flavor_sep(const char *s)
  6424	{
  6425		/* check X___Y name pattern, where X and Y are not underscores */
  6426		return s[0] != '_' &&				      /* X */
  6427		       s[1] == '_' && s[2] == '_' && s[3] == '_' &&   /* ___ */
  6428		       s[4] != '_';				      /* Y */
  6429	}
  6430	
> 6431	size_t bpf_core_essential_name_len(const char *name)

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

             reply	other threads:[~2021-11-14 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14 23:17 kernel test robot [this message]
2021-11-14 23:17 ` [ast-bpf:relo_core 9/19] kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat' kernel test robot

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=202111150730.fJSGk0XH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.