From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796007766; b=WWVGswP/b9bjjbcyg+VQDVkblNVyQaO+IdzzL+I+5UzmtmwOneejbElocn0lRCUtxZe+ hBpfy8bQT0EiOyge6Xx8uJnMHaDCtsyDEYr3ghEC4wBZ0gqBY/pfMY+5jBm/J+hKO5yc/ 9ImgyFON5BeJx0kEtchSUCz14PEGRUnmE+tAN7AxDbAmNrjkaCRHykM8WgnaZdOr1UHog nySZEVgXWrZMTZsNQc6ukdj9VZj5Da96AYpyvrJWusj+bjPEUFwm5atAosGM7kidhXGKJ ZqdQbfzfd383g/aJJcg7nuI9ZDyr15xNw/g06qZjzAk/C42rk3RRjqhphIrVeOo78RQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796007766; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=QvxLCF0y4pcIBlTcVRuCkAgPk5C2pgdQIEKg9cbqGUc=; b=GXWWRj8J/fvajh4v0kP3cattrI6O6e0yeB9W5Sio+TqUBy00Puw/3wSSfoxYIuXq/fMh v5ElVfym6WoWrUNX740oyiw2GVP90EauyBbqPMB5GBIPIWFWRSEDDZNgpxHcJOMtITUkc rqrzNoMxZ9spuPC4O3c5eF3/9+GDRx/SFP7xchLXwIwBai5mTKz9YeSOmqCy6OlvLYzPW GcfPxJsoxADoQVjxXsW285wZGc2fHXOxTxShGPkO1WGMaNBiQWtFgveKEa5IEnTOolGmw MhEscSwy/Js5pIg0/Y0Eam5NoWwCbGWl/o34Mto3d5aR+PhJg/foV/22HVzrrP/LxWQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KD5XtrME; arc=none smtp.remote-ip=198.175.65.17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28751606A330 for ; Mon, 30 Nov 2026 03:02:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 28751606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KD5XtrME DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796007764; x=1827543764; h=date:from:to:cc:subject:message-id; bh=Unxrh1id95x2BhhFiBRtbdAzAk/BZOB0pksT4AsvOy0=; b=KD5XtrMEJg7Gf/78STs2xA60ANHKkROgI94QSPAHYkmmTRJ1ApNfPLvp 3bndsycZknfwxntVcrSIOYp5vZCrPJaLoXZVrVDiwcNfc3X2UbtVnJL+S F/LUN7Twmf4rXME07LVY0oL6ZVIPu0X54Qm/MHJZIZIw8LPqANVHZxHbL aupQFugbXby7hJOsgMrKLZ+g1RQDXFmKm5aTH60FFVRjjqi8VAVH8C+HD PHGvGlONo7fYarb9KTlNeBqmh72uAkBtTq/wu0gJOx0gEOYKB9oCZmzH3 g8/xVP2nbw7DKkviiKzY4KDxLFHh+RywskeaLXA/KogJp1zCPOQlpUSBI g==; X-CSE-ConnectionGUID: E4YdoEIaQbq+joDcsexFJA== X-CSE-MsgGUID: yYNFoGG+SDe43RkF/jnmRA== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4823176" X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="4823176" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 19:02:44 -0800 X-CSE-ConnectionGUID: +O7CEaRrS0ida6I0Y6qhdw== X-CSE-MsgGUID: zxfPDFT/R9C0Vs/omMe9lg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="13177563" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa006.fm.intel.com with ESMTP; 29 Nov 2026 19:02:43 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXrf6-000000001Ew-08iT; Mon, 30 Nov 2026 03:02:40 +0000 Date: Mon, 30 Nov 2026 04:01:41 +0100 From: kernel test robot To: Florian Westphal Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Pablo Neira Ayuso Subject: net/netfilter/ipset/ip_set_hash_netiface.c:163:25: sparse: sparse: cast to non-scalar Message-ID: <20261130035749.gmjBqmkZ-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe6ff8d5d675c01793b9f051d16055dd4aa75244 commit: e80456d79ec83b00a6bd44c377684b1632ccc3c7 netfilter: ipset: remove need to allocate memory on delete operations date: 3 months ago config: alpha-randconfig-r2301-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130035749.gmjBqmkZ-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 16.2.0 sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130035749.gmjBqmkZ-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 | Fixes: e80456d79ec8 ("netfilter: ipset: remove need to allocate memory on delete operations") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261130035749.gmjBqmkZ-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) net/netfilter/ipset/ip_set_hash_netiface.c: note: in included file: net/netfilter/ipset/ip_set_hash_gen.h:368:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:368:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:440:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:440:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:460:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:460:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:1333:40: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:1333:40: sparse: sparse: cast from non-scalar >> net/netfilter/ipset/ip_set_hash_netiface.c:163:25: sparse: sparse: cast to non-scalar >> net/netfilter/ipset/ip_set_hash_netiface.c:163:25: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_netiface.c: note: in included file: net/netfilter/ipset/ip_set_hash_gen.h:368:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:368:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:440:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:440:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:460:22: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:460:22: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_gen.h:1333:40: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_gen.h:1333:40: sparse: sparse: cast from non-scalar net/netfilter/ipset/ip_set_hash_netiface.c:384:25: sparse: sparse: cast to non-scalar net/netfilter/ipset/ip_set_hash_netiface.c:384:25: sparse: sparse: cast from non-scalar vim +163 net/netfilter/ipset/ip_set_hash_netiface.c c737b7c4510026 Florian Westphal 2015-04-02 154 e385357a2f214e Jozsef Kadlecsik 2011-06-16 155 static int e385357a2f214e Jozsef Kadlecsik 2011-06-16 156 hash_netiface4_kadt(struct ip_set *set, const struct sk_buff *skb, e385357a2f214e Jozsef Kadlecsik 2011-06-16 157 const struct xt_action_param *par, 5d50e1d88336a9 Jozsef Kadlecsik 2013-04-08 158 enum ipset_adt adt, struct ip_set_adt_opt *opt) e385357a2f214e Jozsef Kadlecsik 2011-06-16 159 { 21956ab290f7f3 Jozsef Kadlecsik 2015-06-26 160 struct hash_netiface4 *h = set->data; e385357a2f214e Jozsef Kadlecsik 2011-06-16 161 ipset_adtfn adtfn = set->variant->adt[adt]; 5d50e1d88336a9 Jozsef Kadlecsik 2013-04-08 162 struct hash_netiface4_elem e = { 8e5fd2a55e2468 Jozsef Kadlecsik 2026-07-30 @163 .cidr = INIT_CIDR(h->rnets[0], HOST_MASK), bd9087e0407bfb Jozsef Kadlecsik 2012-09-10 164 .elem = 1, e385357a2f214e Jozsef Kadlecsik 2011-06-16 165 }; ca134ce86451f3 Jozsef Kadlecsik 2013-09-07 166 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); e385357a2f214e Jozsef Kadlecsik 2011-06-16 167 e385357a2f214e Jozsef Kadlecsik 2011-06-16 168 if (adt == IPSET_TEST) 5d50e1d88336a9 Jozsef Kadlecsik 2013-04-08 169 e.cidr = HOST_MASK; e385357a2f214e Jozsef Kadlecsik 2011-06-16 170 5d50e1d88336a9 Jozsef Kadlecsik 2013-04-08 171 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); 5d50e1d88336a9 Jozsef Kadlecsik 2013-04-08 172 e.ip &= ip_set_netmask(e.cidr); e385357a2f214e Jozsef Kadlecsik 2011-06-16 173 :::::: The code at line 163 was first introduced by commit :::::: 8e5fd2a55e2468f6225ef5af01ae58cdbcbae8cf netfilter: ipset: rework cidr bookkeeping :::::: TO: Jozsef Kadlecsik :::::: CC: Pablo Neira Ayuso -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki