From: kernel test robot <lkp@intel.com>
To: pr-hung <bkedx0000@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jcmvbkbc-xtensa:pr/26 1/1] drivers/net/netdevsim/fib.c:1502:58: error: expected ';' after top level declarator
Date: Sat, 20 Dec 2025 20:24:09 +0100 [thread overview]
Message-ID: <202512202042.eE0RgpF8-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-kexec (https://download.01.org/0day-ci/archive/20251220/202512202042.eE0RgpF8-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202042.eE0RgpF8-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/202512202042.eE0RgpF8-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/netdevsim/fib.c:58:21: error: duplicate member 'fib_flush_work'
58 | struct work_struct fib_flush_work;
| ^
drivers/net/netdevsim/fib.c:57:21: note: previous declaration is here
57 | struct work_struct fib_flush_work;
| ^
>> drivers/net/netdevsim/fib.c:1502:58: error: expected ';' after top level declarator
1502 | static void nsim_fib_flush_work(struct work_struct *work)
| ^
| ;
>> drivers/net/netdevsim/fib.c:1507:2: error: expected identifier
1507 | struct nsim_fib_data *data = container_of(work, struct nsim_fib_data,
| ^
>> drivers/net/netdevsim/fib.c:1507:2: error: expected identifier
>> drivers/net/netdevsim/fib.c:1509:9: error: use of undeclared identifier 'fib_flush_work'; did you mean 'flush_work'?
1509 | fib_flush_work);
| ^~~~~~~~~~~~~~
| flush_work
include/linux/container_of.h:24:36: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^
include/linux/stddef.h:16:57: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^
include/linux/workqueue.h:610:13: note: 'flush_work' declared here
610 | extern bool flush_work(struct work_struct *work);
| ^
>> drivers/net/netdevsim/fib.c:1506:31: error: expected ';' after expression
1506 | struct nsim_fib_data *data = container_of(work, struct nsim_fib_data,
| ^
include/linux/container_of.h:24:21: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^
include/linux/stddef.h:16:63: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^
>> drivers/net/netdevsim/fib.c:1506:31: error: expected expression
include/linux/container_of.h:24:21: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^
include/linux/stddef.h:16:63: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^
>> drivers/net/netdevsim/fib.c:1511:22: error: redefinition of 'fib_rt'
1511 | struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
| ^
drivers/net/netdevsim/fib.c:1510:22: note: previous definition is here
1510 | struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
| ^
>> drivers/net/netdevsim/fib.c:1511:31: error: redefinition of 'fib_rt_tmp'
1511 | struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
| ^
drivers/net/netdevsim/fib.c:1510:31: note: previous definition is here
1510 | struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
| ^
>> drivers/net/netdevsim/fib.c:1526:34: error: expected ')'
1526 | nsim_fib_rt_ht_params);
| ^
drivers/net/netdevsim/fib.c:1524:25: note: to match this '('
1524 | rhashtable_remove_fast(&data->fib_rt_ht, &fib_rt->ht_node,
| ^
>> drivers/net/netdevsim/fib.c:1527:33: error: extraneous ')' before ';'
1527 | nsim_fib_rt_ht_params);
| ^
drivers/net/netdevsim/fib.c:1509:9: warning: expression result unused [-Wunused-value]
1509 | fib_flush_work);
| ^~~~~~~~~~~~~~
include/linux/container_of.h:24:36: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~
include/linux/stddef.h:16:57: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~
drivers/net/netdevsim/fib.c:1527:12: warning: expression result unused [-Wunused-value]
1527 | nsim_fib_rt_ht_params);
| ^~~~~~~~~~~~~~~~~~~~~
2 warnings and 11 errors generated.
vim +1502 drivers/net/netdevsim/fib.c
0ae3eb7b461120 Amit Cohen 2021-02-01 1501
180a6a3ee60a7c Ido Schimmel 2022-07-28 @1502 static void nsim_fib_flush_work(struct work_struct *work)
0c125b4fcef40e pr-hung 2025-12-18 1503 static void nsim_fib_flush_work(struct work_struct *work)
0c125b4fcef40e pr-hung 2025-12-18 1504 {
180a6a3ee60a7c Ido Schimmel 2022-07-28 1505 {
180a6a3ee60a7c Ido Schimmel 2022-07-28 @1506 struct nsim_fib_data *data = container_of(work, struct nsim_fib_data,
0c125b4fcef40e pr-hung 2025-12-18 @1507 struct nsim_fib_data *data = container_of(work, struct nsim_fib_data,
0c125b4fcef40e pr-hung 2025-12-18 1508 fib_flush_work);
180a6a3ee60a7c Ido Schimmel 2022-07-28 @1509 fib_flush_work);
180a6a3ee60a7c Ido Schimmel 2022-07-28 1510 struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
0c125b4fcef40e pr-hung 2025-12-18 @1511 struct nsim_fib_rt *fib_rt, *fib_rt_tmp;
180a6a3ee60a7c Ido Schimmel 2022-07-28 1512
0c125b4fcef40e pr-hung 2025-12-18 1513
0c125b4fcef40e pr-hung 2025-12-18 1514 /* Process pending work. */
180a6a3ee60a7c Ido Schimmel 2022-07-28 1515 /* Process pending work. */
180a6a3ee60a7c Ido Schimmel 2022-07-28 1516 flush_work(&data->fib_event_work);
0c125b4fcef40e pr-hung 2025-12-18 1517 flush_work(&data->fib_event_work);
180a6a3ee60a7c Ido Schimmel 2022-07-28 1518
0c125b4fcef40e pr-hung 2025-12-18 1519
0c125b4fcef40e pr-hung 2025-12-18 1520 mutex_lock(&data->fib_lock);
180a6a3ee60a7c Ido Schimmel 2022-07-28 1521 mutex_lock(&data->fib_lock);
180a6a3ee60a7c Ido Schimmel 2022-07-28 1522 list_for_each_entry_safe(fib_rt, fib_rt_tmp, &data->fib_rt_list, list) {
0c125b4fcef40e pr-hung 2025-12-18 1523 list_for_each_entry_safe(fib_rt, fib_rt_tmp, &data->fib_rt_list, list) {
0c125b4fcef40e pr-hung 2025-12-18 1524 rhashtable_remove_fast(&data->fib_rt_ht, &fib_rt->ht_node,
180a6a3ee60a7c Ido Schimmel 2022-07-28 1525 rhashtable_remove_fast(&data->fib_rt_ht, &fib_rt->ht_node,
180a6a3ee60a7c Ido Schimmel 2022-07-28 @1526 nsim_fib_rt_ht_params);
0c125b4fcef40e pr-hung 2025-12-18 @1527 nsim_fib_rt_ht_params);
180a6a3ee60a7c Ido Schimmel 2022-07-28 1528 nsim_fib_rt_free(fib_rt, data);
0c125b4fcef40e pr-hung 2025-12-18 1529 nsim_fib_rt_free(fib_rt, data);
0c125b4fcef40e pr-hung 2025-12-18 1530 }
180a6a3ee60a7c Ido Schimmel 2022-07-28 1531 }
180a6a3ee60a7c Ido Schimmel 2022-07-28 1532 mutex_unlock(&data->fib_lock);
0c125b4fcef40e pr-hung 2025-12-18 1533 mutex_unlock(&data->fib_lock);
0c125b4fcef40e pr-hung 2025-12-18 1534 }
180a6a3ee60a7c Ido Schimmel 2022-07-28 1535 }
180a6a3ee60a7c Ido Schimmel 2022-07-28 1536
:::::: The code at line 1502 was first introduced by commit
:::::: 180a6a3ee60a7cb69ed1232388460644f6a21f00 netdevsim: fib: Fix reference count leak on route deletion failure
:::::: TO: Ido Schimmel <idosch@nvidia.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-12-20 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-20 19:24 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-12-20 19:16 [jcmvbkbc-xtensa:pr/26 1/1] drivers/net/netdevsim/fib.c:1502:58: error: expected ';' after top level declarator 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=202512202042.eE0RgpF8-lkp@intel.com \
--to=lkp@intel.com \
--cc=bkedx0000@gmail.com \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox