]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
netpoll: Remove unused fields from inet_addr union
authorBreno Leitao <leitao@debian.org>
Wed, 23 Jul 2025 17:20:29 +0000 (10:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Jul 2025 20:59:41 +0000 (13:59 -0700)
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>
include/linux/netpoll.h

index 735e65c3cc11408ae1729f2b1db283920015c559..b5ea9882eda8b42f6ab115749a3d986829d334ff 100644 (file)
 #include <linux/refcount.h>
 
 union inet_addr {
-       __u32           all[4];
        __be32          ip;
-       __be32          ip6[4];
-       struct in_addr  in;
        struct in6_addr in6;
 };