From: kernel test robot <lkp@intel.com>
To: David Woodhouse <dwmw@amazon.co.uk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [dwmw2:deprecate-legacy-ip 5/6] net/core/filter.c:6087:12: warning: 'bpf_fib_set_fwd_params' defined but not used
Date: Fri, 03 Apr 2026 16:41:03 +0800 [thread overview]
Message-ID: <202604022158.JsHHVfOH-lkp@intel.com> (raw)
tree: git://git.infradead.org/users/dwmw2/linux deprecate-legacy-ip
head: 2d2acff90d1c42a747b3fed5ce9189622f49daa3
commit: 3f213df15191632a3cb32932955ee90bff8385a0 [5/6] net: Change CONFIG_INET to CONFIG_LEGACY_IP for IPv4-only code
config: openrisc-defconfig (https://download.01.org/0day-ci/archive/20260402/202604022158.JsHHVfOH-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604022158.JsHHVfOH-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604022158.JsHHVfOH-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> net/core/filter.c:6087:12: warning: 'bpf_fib_set_fwd_params' defined but not used [-Wunused-function]
6087 | static int bpf_fib_set_fwd_params(struct bpf_fib_lookup *params, u32 mtu)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/bpf_fib_set_fwd_params +6087 net/core/filter.c
12bed760a78da6 Eyal Birger 2018-04-24 6085
adc4a85026a541 David Woodhouse 2026-04-01 6086 #if IS_ENABLED(CONFIG_INET)
31de4105f00d64 Martin KaFai Lau 2023-02-17 @6087 static int bpf_fib_set_fwd_params(struct bpf_fib_lookup *params, u32 mtu)
87f5fc7e48dd31 David Ahern 2018-05-09 6088 {
87f5fc7e48dd31 David Ahern 2018-05-09 6089 params->h_vlan_TCI = 0;
87f5fc7e48dd31 David Ahern 2018-05-09 6090 params->h_vlan_proto = 0;
e1850ea9bd9eca Jesper Dangaard Brouer 2021-02-09 6091 if (mtu)
e1850ea9bd9eca Jesper Dangaard Brouer 2021-02-09 6092 params->mtu_result = mtu; /* union with tot_len */
87f5fc7e48dd31 David Ahern 2018-05-09 6093
4c79579b44b187 David Ahern 2018-06-26 6094 return 0;
87f5fc7e48dd31 David Ahern 2018-05-09 6095 }
87f5fc7e48dd31 David Ahern 2018-05-09 6096 #endif
87f5fc7e48dd31 David Ahern 2018-05-09 6097
:::::: The code at line 6087 was first introduced by commit
:::::: 31de4105f00d64570139bc5494a201b0bd57349f bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookup
:::::: TO: Martin KaFai Lau <martin.lau@kernel.org>
:::::: CC: Daniel Borkmann <daniel@iogearbox.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-03 8:42 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=202604022158.JsHHVfOH-lkp@intel.com \
--to=lkp@intel.com \
--cc=dwmw@amazon.co.uk \
--cc=oe-kbuild-all@lists.linux.dev \
/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.