[PATCH net-next v2 1/5] netpoll: Remove unused fields from inet_addr union

Breno Leitao posted 5 patches 2 months, 2 weeks ago
There is a newer version of this series
[PATCH net-next v2 1/5] netpoll: Remove unused fields from inet_addr union
Posted by Breno Leitao 2 months, 2 weeks ago
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>
---
 include/linux/netpoll.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h
index 735e65c3cc114..b5ea9882eda8b 100644
--- a/include/linux/netpoll.h
+++ b/include/linux/netpoll.h
@@ -15,10 +15,7 @@
 #include <linux/refcount.h>
 
 union inet_addr {
-	__u32		all[4];
 	__be32		ip;
-	__be32		ip6[4];
-	struct in_addr	in;
 	struct in6_addr	in6;
 };
 

-- 
2.47.1
Re: [PATCH net-next v2 1/5] netpoll: Remove unused fields from inet_addr union
Posted by Simon Horman 2 months, 2 weeks ago
On Mon, Jul 21, 2025 at 06:02:01AM -0700, Breno Leitao wrote:
> 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>