netconsole: move struct inet_addr into netconsole.c

The struct inet_addr lives in netpoll.h, but since commit a111639647
("netconsole: move local_ip/remote_ip/ipv6 to netconsole_target") the
only user is netconsole. Move the definition into netconsole.c

Suggested-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com>
Link: https://patch.msgid.link/20260903-netcons_ipv6-v4-6-bdd183c844d3@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Gustavo Luiz Duarte authored and Jakub Kicinski committed 2026-09-09 18:09:52 -07:00
1 parent 56ddc8d48e
commit 7be9bfb768
2 files changed
+9 -9

No files matched your search

+9
View File
@@ -151,6 +151,15 @@ enum target_state {
STATE_DEACTIVATED,
};
struct inet_addr {
/* Address family: AF_UNSPEC when unset, else AF_INET or AF_INET6 */
u8 family;
union {
__be32 ip;
struct in6_addr in6;
};
};
/**
* struct netcons_userdata - Formatted userdata payload of a target.
* @rcu: Used to free the payload after a grace period.
-9
View File
@@ -16,15 +16,6 @@
#include <linux/ip.h>
#include <linux/udp.h>
struct inet_addr {
/* Address family: AF_UNSPEC when unset, else AF_INET or AF_INET6 */
u8 family;
union {
__be32 ip;
struct in6_addr in6;
};
};
struct netpoll {
struct net_device *dev;
netdevice_tracker dev_tracker;