public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [netfilter-nf:testing 8/9] net/netfilter/nf_conntrack_netlink.c:3583:7: error: no member named 'zone' in 'struct nf_conntrack_expect'
@ 2026-03-21  5:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-21  5:52 UTC (permalink / raw)
  To: Pablo Neira Ayuso
  Cc: llvm, oe-kbuild-all, netfilter-devel, coreteam, Florian Westphal

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git testing
head:   b1bad43d8b00ab31c8f93145a4c8db1567f0d2fe
commit: 5559719129b7370573ae4892829ea7c55f702b27 [8/9] netfilter: nf_conntrack_expect: store netns and zone in expectation
config: arm-randconfig-002-20260321 (https://download.01.org/0day-ci/archive/20260321/202603211353.vSxiy3Az-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 4abb927bacf37f18f6359a41639a6d1b3bffffb5)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603211353.vSxiy3Az-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/202603211353.vSxiy3Az-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/netfilter/nf_conntrack_netlink.c:3583:7: error: no member named 'zone' in 'struct nf_conntrack_expect'
    3583 |         exp->zone = ct->zone;
         |         ~~~  ^
>> net/netfilter/nf_conntrack_netlink.c:3583:18: error: no member named 'zone' in 'struct nf_conn'
    3583 |         exp->zone = ct->zone;
         |                     ~~  ^
   2 errors generated.
--
>> net/netfilter/nf_conntrack_expect.c:341:7: error: no member named 'zone' in 'struct nf_conntrack_expect'
     341 |         exp->zone = exp->master->zone;
         |         ~~~  ^
>> net/netfilter/nf_conntrack_expect.c:341:27: error: no member named 'zone' in 'struct nf_conn'
     341 |         exp->zone = exp->master->zone;
         |                     ~~~~~~~~~~~  ^
   2 errors generated.


vim +3583 net/netfilter/nf_conntrack_netlink.c

  3535	
  3536	static struct nf_conntrack_expect *
  3537	ctnetlink_alloc_expect(const struct nlattr * const cda[], struct nf_conn *ct,
  3538			       struct nf_conntrack_helper *helper,
  3539			       struct nf_conntrack_tuple *tuple,
  3540			       struct nf_conntrack_tuple *mask)
  3541	{
  3542		struct net *net = read_pnet(&ct->ct_net);
  3543		struct nf_conntrack_expect *exp;
  3544		struct nf_conn_help *help;
  3545		u_int32_t class = 0;
  3546		int err;
  3547	
  3548		help = nfct_help(ct);
  3549		if (!help)
  3550			return ERR_PTR(-EOPNOTSUPP);
  3551	
  3552		if (cda[CTA_EXPECT_CLASS] && helper) {
  3553			class = ntohl(nla_get_be32(cda[CTA_EXPECT_CLASS]));
  3554			if (class > helper->expect_class_max)
  3555				return ERR_PTR(-EINVAL);
  3556		}
  3557		exp = nf_ct_expect_alloc(ct);
  3558		if (!exp)
  3559			return ERR_PTR(-ENOMEM);
  3560	
  3561		if (cda[CTA_EXPECT_FLAGS]) {
  3562			exp->flags = ntohl(nla_get_be32(cda[CTA_EXPECT_FLAGS]));
  3563			exp->flags &= ~NF_CT_EXPECT_USERSPACE;
  3564		} else {
  3565			exp->flags = 0;
  3566		}
  3567		if (cda[CTA_EXPECT_FN]) {
  3568			const char *name = nla_data(cda[CTA_EXPECT_FN]);
  3569			struct nf_ct_helper_expectfn *expfn;
  3570	
  3571			expfn = nf_ct_helper_expectfn_find_by_name(name);
  3572			if (expfn == NULL) {
  3573				err = -EINVAL;
  3574				goto err_out;
  3575			}
  3576			exp->expectfn = expfn->expectfn;
  3577		} else
  3578			exp->expectfn = NULL;
  3579	
  3580		exp->class = class;
  3581		exp->master = ct;
  3582		write_pnet(&exp->net, net);
> 3583		exp->zone = ct->zone;
  3584		rcu_assign_pointer(exp->helper, helper ? : help->helper);
  3585		exp->tuple = *tuple;
  3586		exp->mask.src.u3 = mask->src.u3;
  3587		exp->mask.src.u.all = mask->src.u.all;
  3588	
  3589		if (cda[CTA_EXPECT_NAT]) {
  3590			err = ctnetlink_parse_expect_nat(cda[CTA_EXPECT_NAT],
  3591							 exp, nf_ct_l3num(ct));
  3592			if (err < 0)
  3593				goto err_out;
  3594		}
  3595		return exp;
  3596	err_out:
  3597		nf_ct_expect_put(exp);
  3598		return ERR_PTR(err);
  3599	}
  3600	

-- 
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:[~2026-03-21  5:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-21  5:52 [netfilter-nf:testing 8/9] net/netfilter/nf_conntrack_netlink.c:3583:7: error: no member named 'zone' in 'struct nf_conntrack_expect' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox