summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGustavo Luiz Duarte <gustavold@gmail.com>2026-09-03 17:26:05 +0100
committerJakub Kicinski <kuba@kernel.org>2026-09-09 18:09:52 -0700
commit7be9bfb7689e875fc94b711dcafe27c86413c966 (patch)
treeb50f078aecaaf37b6369a10d41db82a0ab012149 /drivers
parent56ddc8d48e75f48df938f5df80e2f99a0c3548d3 (diff)
downloadlinux-next-7be9bfb7689e875fc94b711dcafe27c86413c966.tar.gz
linux-next-7be9bfb7689e875fc94b711dcafe27c86413c966.zip
netconsole: move struct inet_addr into netconsole.c
The struct inet_addr lives in netpoll.h, but since commit a1116396476f ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/netconsole.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 1f18d0a7d2dd..267254f046de 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -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.