All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: kernel/bpf/btf.c:6357:1: warning: There is an unknown macro here somewhere. Configuration is required. If BTF_ID_LIST_GLOBAL is a macro then please configure it. [unknownMacro]
Date: Fri, 01 Apr 2022 05:59:55 +0800	[thread overview]
Message-ID: <202204010555.QhERif3O-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Song Liu <songliubraving@fb.com>
CC: Alexei Starovoitov <ast@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e729dbe8ea1c6145ae7b9efd6a00a5613746d3b0
commit: d19ddb476a539fd78ad1028ae13bb38506286931 bpf: Introduce btf_tracing_ids
date:   5 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 months ago
compiler: or1k-linux-gcc (GCC) 11.2.0

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


cppcheck warnings: (new ones prefixed by >>)
>> net/core/rtnetlink.c:5220:9: warning: Local variable 'err' shadows outer variable [shadowVariable]
       int err;
           ^
   net/core/rtnetlink.c:5120:6: note: Shadowed declaration
    int err;
        ^
   net/core/rtnetlink.c:5220:9: note: Shadow variable
       int err;
           ^

cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> net/core/rtnetlink.c:4846:6: warning: Redundant initialization for 'err'. The initialized value is overwritten before it is read. [redundantInitialization]
    err = dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0, 0);
        ^
   net/core/rtnetlink.c:4835:10: note: err is initialized
    int err = -EOPNOTSUPP;
            ^
   net/core/rtnetlink.c:4846:6: note: err is overwritten
    err = dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0, 0);
        ^
>> net/core/rtnetlink.c:2238:52: warning: Parameter 'tb' can be declared with const [constParameter]
   static int rtnl_ensure_unique_netns(struct nlattr *tb[],
                                                      ^
--
>> kernel/bpf/btf.c:6357:1: warning: There is an unknown macro here somewhere. Configuration is required. If BTF_ID_LIST_GLOBAL is a macro then please configure it. [unknownMacro]
   BTF_ID_LIST_GLOBAL(btf_tracing_ids, MAX_BTF_TRACING_TYPE)
   ^
--
>> net/core/dev.c:1651:2: warning: There is an unknown macro here somewhere. Configuration is required. If netdev_for_each_lower_dev is a macro then please configure it. [unknownMacro]
    netdev_for_each_lower_dev(dev, lower_dev, iter)
    ^

vim +6357 kernel/bpf/btf.c

eb529c5b10b940 Daniel Xu               2021-08-25  6356  
d19ddb476a539f Song Liu                2021-11-12 @6357  BTF_ID_LIST_GLOBAL(btf_tracing_ids, MAX_BTF_TRACING_TYPE)
d19ddb476a539f Song Liu                2021-11-12  6358  #define BTF_TRACING_TYPE(name, type) BTF_ID(struct, type)
d19ddb476a539f Song Liu                2021-11-12  6359  BTF_TRACING_TYPE_xxx
d19ddb476a539f Song Liu                2021-11-12  6360  #undef BTF_TRACING_TYPE
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  6361  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-03-31 21:59 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=202204010555.QhERif3O-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.