drivers/net: ipv4: Fix warning about missing prototype
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.
Signed-off-by Jan Kiszka <[email protected]>
--- 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
@@ -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