Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netpoll: Remove unused fields from inet_addr union

Clean up the inet_addr union by removing unused fields that are
redundant with existing members:

This simplifies the union structure while maintaining all necessary
functionality for both IPv4 and IPv6 address handling.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250723-netconsole_ref-v3-1-8be9b24e4a99@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Breno Leitao and committed by
Jakub Kicinski
33360f25 f24987ef

-3
-3
include/linux/netpoll.h
··· 15 15 #include <linux/refcount.h> 16 16 17 17 union inet_addr { 18 - __u32 all[4]; 19 18 __be32 ip; 20 - __be32 ip6[4]; 21 - struct in_addr in; 22 19 struct in6_addr in6; 23 20 }; 24 21