All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH net-next v4 02/14] net: skb: use dstref for storing dst entry
@ 2025-11-13 17:09 kernel test robot
  0 siblings, 0 replies; 22+ messages in thread
From: kernel test robot @ 2025-11-13 17:09 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20251112072720.5076-3-mmietus97@yahoo.com>
References: <20251112072720.5076-3-mmietus97@yahoo.com>
TO: Marek Mietus <mmietus97@yahoo.com>
TO: netdev@vger.kernel.org
TO: sd@queasysnail.net
TO: kuba@kernel.org
CC: Marek Mietus <mmietus97@yahoo.com>

Hi Marek,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Marek-Mietus/net-dst-implement-dstref-object/20251112-154653
base:   net-next/main
patch link:    https://lore.kernel.org/r/20251112072720.5076-3-mmietus97%40yahoo.com
patch subject: [PATCH net-next v4 02/14] net: skb: use dstref for storing dst entry
:::::: branch date: 33 hours ago
:::::: commit date: 33 hours ago
config: i386-randconfig-141-20251113 (https://download.01.org/0day-ci/archive/20251114/202511140040.OyZYHGcM-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202511140040.OyZYHGcM-lkp@intel.com/

smatch warnings:
include/net/dst_metadata.h:111 skb_metadata_dst_cmp() error: we previously assumed 'a' could be null (see line 108)

vim +/a +111 include/net/dst_metadata.h

f38a9eb1f77b29 Thomas Graf    2015-07-21   99  
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  100  static inline int skb_metadata_dst_cmp(const struct sk_buff *skb_a,
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  101  				       const struct sk_buff *skb_b)
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  102  {
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  103  	const struct metadata_dst *a, *b;
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  104  
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  105  	a = (const struct metadata_dst *) skb_dst(skb_a);
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  106  	b = (const struct metadata_dst *) skb_dst(skb_b);
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  107  
24caf75770069f Marek Mietus   2025-11-12 @108  	if (!a && !b)
24caf75770069f Marek Mietus   2025-11-12  109  		return 0;
24caf75770069f Marek Mietus   2025-11-12  110  
3fcece12bc1b6d Jakub Kicinski 2017-06-23 @111  	if (!a != !b || a->type != b->type)
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  112  		return 1;
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  113  
3fcece12bc1b6d Jakub Kicinski 2017-06-23  114  	switch (a->type) {
3fcece12bc1b6d Jakub Kicinski 2017-06-23  115  	case METADATA_HW_PORT_MUX:
3fcece12bc1b6d Jakub Kicinski 2017-06-23  116  		return memcmp(&a->u.port_info, &b->u.port_info,
3fcece12bc1b6d Jakub Kicinski 2017-06-23  117  			      sizeof(a->u.port_info));
3fcece12bc1b6d Jakub Kicinski 2017-06-23  118  	case METADATA_IP_TUNNEL:
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  119  		return memcmp(&a->u.tun_info, &b->u.tun_info,
3fcece12bc1b6d Jakub Kicinski 2017-06-23  120  			      sizeof(a->u.tun_info) +
3fcece12bc1b6d Jakub Kicinski 2017-06-23  121  					 a->u.tun_info.options_len);
0a28bfd4971fd5 Lior Nahmanson 2022-09-05  122  	case METADATA_MACSEC:
0a28bfd4971fd5 Lior Nahmanson 2022-09-05  123  		return memcmp(&a->u.macsec_info, &b->u.macsec_info,
0a28bfd4971fd5 Lior Nahmanson 2022-09-05  124  			      sizeof(a->u.macsec_info));
5182a5d48c3d19 Eyal Birger    2022-08-26  125  	case METADATA_XFRM:
5182a5d48c3d19 Eyal Birger    2022-08-26  126  		return memcmp(&a->u.xfrm_info, &b->u.xfrm_info,
5182a5d48c3d19 Eyal Birger    2022-08-26  127  			      sizeof(a->u.xfrm_info));
3fcece12bc1b6d Jakub Kicinski 2017-06-23  128  	default:
3fcece12bc1b6d Jakub Kicinski 2017-06-23  129  		return 1;
3fcece12bc1b6d Jakub Kicinski 2017-06-23  130  	}
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  131  }
ce87fc6ce3f9f4 Jesse Gross    2016-01-20  132  

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-11-18  0:10 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20251112072720.5076-1-mmietus97.ref@yahoo.com>
2025-11-12  7:27 ` [PATCH net-next v4 00/14] net: tunnel: introduce noref xmit flows for tunnels Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 01/14] net: dst: implement dstref object Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 02/14] net: skb: use dstref for storing dst entry Marek Mietus
2025-11-12 17:09     ` Sabrina Dubroca
2025-11-13  9:36       ` Marek Mietus
     [not found]         ` <CANn89i+qce6WJYUpjH93SMRKA8cQ6Wt-b81O6gu9V5GGnDeo_A@mail.gmail.com>
2025-11-13 18:17           ` Sabrina Dubroca
2025-11-17 11:31             ` Marek Mietus
2025-11-18  0:10               ` Jakub Kicinski
2025-11-12  7:27   ` [PATCH net-next v4 03/14] net: skb: rename skb_dstref_restore to skb_dstref_set Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 04/14] net: dst_cache: add noref versions for dst_cache Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 05/14] net: tunnel: use dstref in ip and udp tunnel xmit functions Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 06/14] net: tunnel: return dstref in udp_tunnel{,6}_dst_lookup Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 07/14] net: tunnel: make udp_tunnel{,6}_dst_lookup return a noref dst Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 08/14] net: ovpn: convert ovpn_udp{4,6}_output to use " Marek Mietus
2025-11-12  7:27   ` [PATCH net-next v4 09/14] net: wireguard: convert send{4,6} to use a noref dst when possible Marek Mietus
2025-11-13 16:40     ` Jason A. Donenfeld
2025-11-12  7:33   ` [PATCH net-next v4 10/14] net: tunnel: convert ip_md_tunnel_xmit " Marek Mietus
2025-11-12  7:33   ` [PATCH net-next v4 11/14] net: tunnel: convert ip_tunnel_xmit " Marek Mietus
2025-11-12  7:33   ` [PATCH net-next v4 12/14] net: sit: convert ipip6_tunnel_xmit to use a noref dst Marek Mietus
2025-11-12  7:33   ` [PATCH net-next v4 13/14] net: tipc: convert tipc_udp_xmit " Marek Mietus
2025-11-12  7:33   ` [PATCH net-next v4 14/14] net: sctp: convert sctp_v{4,6}_xmit to use a noref dst when possible Marek Mietus
2025-11-13 17:09 [PATCH net-next v4 02/14] net: skb: use dstref for storing dst entry kernel test robot

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.