Skip to contentSkip to conversation

drivers/net: ipv4: Fix warning about missing prototype

PATCH New Jan Kiszka 1 participant 1 message May 22, 2024

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 drivers/net: ipv4: Fix warning about missing prototype

From: Jan Kiszka <[email protected]>

This header is needed unconditionally to avoid

warning: no previous prototype for ‘rt_ip_rcv’ [-Wmissing-prototypes]

if CONFIG_XENO_DRIVERS_NET_ADDON_PROXY is off.

---
 kernel/drivers/net/stack/ipv4/ip_input.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/drivers/net/stack/ipv4/ip_input.c +1 -2
index 6941e73ed3..26642ef6fe 100644
@@ -29,12 +29,11 @@
 #include <rtnet_socket.h>
 #include <stack_mgr.h>
 #include <ipv4/ip_fragment.h>
+#include <ipv4/ip_input.h>
 #include <ipv4/protocol.h>
 #include <ipv4/route.h>
 
 #if IS_ENABLED(CONFIG_XENO_DRIVERS_NET_ADDON_PROXY)
-#include <ipv4/ip_input.h>
-
 rt_ip_fallback_handler_t rt_ip_fallback_handler = NULL;
 EXPORT_SYMBOL_GPL(rt_ip_fallback_handler);
 #endif /* CONFIG_XENO_DRIVERS_NET_ADDON_PROXY */
Signature · 1 line
2.43.0