All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: pr-hung <bkedx0000@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jcmvbkbc-xtensa:pr/26 1/1] drivers/net/netdevsim/fib.c:58:28: error: duplicate member 'fib_flush_work'
Date: Mon, 22 Dec 2025 00:45:18 +0100	[thread overview]
Message-ID: <202512220054.QSnSPPy9-lkp@intel.com> (raw)

tree:   https://github.com/jcmvbkbc/linux-xtensa pr/26
head:   0c125b4fcef40ea2c876496f0e3b9b6e74dcebde
commit: 0c125b4fcef40ea2c876496f0e3b9b6e74dcebde [1/1] Fix potential vulnerability in cloned code (drivers/net/netdevsim/fib.c)
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20251222/202512220054.QSnSPPy9-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251222/202512220054.QSnSPPy9-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/202512220054.QSnSPPy9-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> drivers/net/netdevsim/fib.c:58:28: error: duplicate member 'fib_flush_work'
      58 |         struct work_struct fib_flush_work;
         |                            ^~~~~~~~~~~~~~
   drivers/net/netdevsim/fib.c: In function 'nsim_fib_flush_work':
>> drivers/net/netdevsim/fib.c:1504:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1504 | {
         | ^
   drivers/net/netdevsim/fib.c:1540:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1540 | {
         | ^
   drivers/net/netdevsim/fib.c:1567:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1567 | {
         | ^
   drivers/net/netdevsim/fib.c:1573:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1573 | {
         | ^
   drivers/net/netdevsim/fib.c:1665:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1665 | {
         | ^
>> drivers/net/netdevsim/fib.c:1692: error: expected '{' at end of input
   drivers/net/netdevsim/fib.c: At top level:
>> drivers/net/netdevsim/fib.c:1502:13: warning: 'nsim_fib_flush_work' defined but not used [-Wunused-function]
    1502 | static void nsim_fib_flush_work(struct work_struct *work)
         |             ^~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1479:13: warning: 'nsim_fib_event_work' defined but not used [-Wunused-function]
    1479 | static void nsim_fib_event_work(struct work_struct *work)
         |             ^~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1458:13: warning: 'nsim_fib_set_max_all' defined but not used [-Wunused-function]
    1458 | static void nsim_fib_set_max_all(struct nsim_fib_data *data,
         |             ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1451:12: warning: 'nsim_fib_nexthops_res_occ_get' defined but not used [-Wunused-function]
    1451 | static u64 nsim_fib_nexthops_res_occ_get(void *priv)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1444:12: warning: 'nsim_fib_ipv6_rules_res_occ_get' defined but not used [-Wunused-function]
    1444 | static u64 nsim_fib_ipv6_rules_res_occ_get(void *priv)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1437:12: warning: 'nsim_fib_ipv6_resource_occ_get' defined but not used [-Wunused-function]
    1437 | static u64 nsim_fib_ipv6_resource_occ_get(void *priv)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1430:12: warning: 'nsim_fib_ipv4_rules_res_occ_get' defined but not used [-Wunused-function]
    1430 | static u64 nsim_fib_ipv4_rules_res_occ_get(void *priv)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1423:12: warning: 'nsim_fib_ipv4_resource_occ_get' defined but not used [-Wunused-function]
    1423 | static u64 nsim_fib_ipv4_resource_occ_get(void *priv)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1417:37: warning: 'nsim_nexthop_bucket_activity_fops' defined but not used [-Wunused-const-variable=]
    1417 | static const struct file_operations nsim_nexthop_bucket_activity_fops = {
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1353:13: warning: 'nsim_nexthop_free' defined but not used [-Wunused-function]
    1353 | static void nsim_nexthop_free(void *ptr, void *arg)
         |             ^~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1323:12: warning: 'nsim_nexthop_event_nb' defined but not used [-Wunused-function]
    1323 | static int nsim_nexthop_event_nb(struct notifier_block *nb, unsigned long event,
         |            ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1091:13: warning: 'nsim_fib_dump_inconsistent' defined but not used [-Wunused-function]
    1091 | static void nsim_fib_dump_inconsistent(struct notifier_block *nb)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/fib.c:1027:12: warning: 'nsim_fib_event_nb' defined but not used [-Wunused-function]
    1027 | static int nsim_fib_event_nb(struct notifier_block *nb, unsigned long event,
         |            ^~~~~~~~~~~~~~~~~


vim +/fib_flush_work +58 drivers/net/netdevsim/fib.c

    44	
    45	struct nsim_fib_data {
    46		struct notifier_block fib_nb;
    47		struct nsim_per_fib_data ipv4;
    48		struct nsim_per_fib_data ipv6;
    49		struct nsim_fib_entry nexthops;
    50		struct rhashtable fib_rt_ht;
    51		struct list_head fib_rt_list;
    52		struct mutex fib_lock; /* Protects FIB HT and list */
    53		struct notifier_block nexthop_nb;
    54		struct rhashtable nexthop_ht;
    55		struct devlink *devlink;
    56		struct work_struct fib_event_work;
    57		struct work_struct fib_flush_work;
  > 58		struct work_struct fib_flush_work;
    59		struct list_head fib_event_queue;
    60		spinlock_t fib_event_queue_lock; /* Protects fib event queue list */
    61		struct mutex nh_lock; /* Protects NH HT */
    62		struct dentry *ddir;
    63		bool fail_route_offload;
    64		bool fail_res_nexthop_group_replace;
    65		bool fail_nexthop_bucket_replace;
    66		bool fail_route_delete;
    67	};
    68	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-12-21 23:46 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=202512220054.QSnSPPy9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bkedx0000@gmail.com \
    --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.