net/netfilter/nfnetlink_hook.c:375:16: error: expected ';' after expression
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/intel-lab-lkp/linux/commits/Phil-Sutter/netfilter-nfnetlink_hook-Pass-cb-object-to-nfnl_hook_dump_nat/20260709-004129 head: 82b3ae63423bde6a0a2c963376b2feab3c1d404b commit: 82b3ae63423bde6a0a2c963376b2feab3c1d404b netfilter: nfnetlink_hook: Fix for concurrent NAT hooks dump and change date: 15 hours ago config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260709/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> net/netfilter/nfnetlink_hook.c:375:16: error: expected ';' after expression 375 | ctx->natv = 0 | ^ | ; 1 error generated. vim +375 net/netfilter/nfnetlink_hook.c 340 341 static int nfnl_hook_dump_nat(struct sk_buff *nlskb, 342 struct netlink_callback *cb, 343 const struct nf_hook_ops *ops, int family) 344 { 345 struct nf_nat_lookup_hook_priv *priv = ops->priv; 346 struct nf_hook_entries *e = rcu_dereference(priv->entries); 347 struct nfnl_dump_hook_data *ctx = cb->data; 348 struct nf_hook_ops **nat_ops; 349 unsigned int i = cb->args[1]; 350 int err = 0; 351 352 if (!e) 353 return 0; 354 355 if (!ctx->natv) 356 ctx->natv = (unsigned long)e; 357 358 if (i >= e->num_hook_entries || 359 ctx->natv != (unsigned long)e) { 360 cb->seq++; 361 return -EINTR; 362 } 363 364 nat_ops = nf_hook_entries_get_hook_ops(e); 365 366 for (; i < e->num_hook_entries; i++) { 367 err = nfnl_hook_dump_one(nlskb, ctx, nat_ops[i], 368 ops->priority, family, 369 cb->nlh->nlmsg_seq); 370 if (err) 371 break; 372 } 373 374 if (!err) { > 375 ctx->natv = 0 376 i = 0; 377 } 378 cb->args[1] = i; 379 return err; 380 } 381 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki