* [openeuler:OLK-5.10 29971/30000] drivers/net/ipvlan/ipvlan_main.c:431:19: warning: variable 'old_prog' set but not used
@ 2024-10-11 11:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-11 11:03 UTC (permalink / raw)
To: kernel, Yue Haibing; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 33a5644b70e15c265ec94eb3726216950a1476ef
commit: 373ce97bdbb6378acf984656798aff4bb706a447 [29971/30000] ipvlan: support use xdp native mode
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20241011/202410111924.i3Aw2F5F-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410111924.i3Aw2F5F-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/202410111924.i3Aw2F5F-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ipvlan/ipvlan_main.c:431:19: warning: variable 'old_prog' set but not used [-Wunused-but-set-variable]
431 | struct bpf_prog *old_prog;
| ^
1 warning generated.
vim +/old_prog +431 drivers/net/ipvlan/ipvlan_main.c
426
427 static int ipvlan_xdp_set(struct net_device *dev, struct bpf_prog *prog,
428 struct netlink_ext_ack *extack)
429 {
430 struct ipvl_dev *priv = netdev_priv(dev);
> 431 struct bpf_prog *old_prog;
432
433 old_prog = rtnl_dereference(priv->xdp_prog);
434 rcu_assign_pointer(priv->xdp_prog, prog);
435 return 0;
436 }
437
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-11 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11 11:03 [openeuler:OLK-5.10 29971/30000] drivers/net/ipvlan/ipvlan_main.c:431:19: warning: variable 'old_prog' set but not used kernel test robot
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.