From: Sven Eckelmann Date: Thu, 28 Aug 2025 18:21:43 +0000 (+0200) Subject: batman-adv: remove includes for extern declarations X-Git-Tag: v6.18-rc1~132^2~145^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=629a2b18e8729497eeac5b63e575e0961ca3a4ab;p=thirdparty%2Flinux.git batman-adv: remove includes for extern declarations It is not necessary to include the header for the struct definition for an "extern " declaration. It can simply be dropped from the headers to reduce the number of includes the preprocessor has to process. If needed, it can be added to the actual C source file. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index bace57e4f9a51..5113f879736b5 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index 262a783647427..9db8a310961ea 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/net/batman-adv/mesh-interface.c b/net/batman-adv/mesh-interface.c index be55d8d87348c..df7e95811ef56 100644 --- a/net/batman-adv/mesh-interface.c +++ b/net/batman-adv/mesh-interface.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include diff --git a/net/batman-adv/mesh-interface.h b/net/batman-adv/mesh-interface.h index 7ba055b2bc269..53756c5a45e04 100644 --- a/net/batman-adv/mesh-interface.h +++ b/net/batman-adv/mesh-interface.h @@ -13,7 +13,6 @@ #include #include #include -#include int batadv_skb_head_push(struct sk_buff *skb, unsigned int len); void batadv_interface_rx(struct net_device *mesh_iface, diff --git a/net/batman-adv/netlink.h b/net/batman-adv/netlink.h index fe4548b974bb0..4eae9e5ff1354 100644 --- a/net/batman-adv/netlink.h +++ b/net/batman-adv/netlink.h @@ -11,7 +11,6 @@ #include #include -#include void batadv_netlink_register(void); void batadv_netlink_unregister(void);