batman-adv: move include line at the same place as other files
Commit Message
main.h is always included after the #ifdef guard except for
bat_v_elp.h. Move it at the right place.
Cc: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
net/batman-adv/bat_v_elp.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Saturday 21 May 2016 20:17:56 Antonio Quartulli wrote:
> main.h is always included after the #ifdef guard except for
> bat_v_elp.h. Move it at the right place.
>
> Cc: Sven Eckelmann <sven@narfation.org>
> Signed-off-by: Antonio Quartulli <a@unstable.cc>
> ---
Good find :)
Reviewed-by: Sven Eckelmann <sven@narfation.org>
Kind regards,
Sven
> net/batman-adv/bat_v_elp.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/batman-adv/bat_v_elp.h b/net/batman-adv/bat_v_elp.h
> index cc130b2..be17c0b 100644
> --- a/net/batman-adv/bat_v_elp.h
> +++ b/net/batman-adv/bat_v_elp.h
> @@ -15,11 +15,11 @@
> * along with this program; if not, see <http://www.gnu.org/licenses/>.
> */
>
> -#include "main.h"
> -
> #ifndef _NET_BATMAN_ADV_BAT_V_ELP_H_
> #define _NET_BATMAN_ADV_BAT_V_ELP_H_
>
> +#include "main.h"
> +
> struct sk_buff;
> struct work_struct;
On Saturday, May 21, 2016 14:32:38 Sven Eckelmann wrote:
> Signed by sven@narfation.org. Show Details
>
> On Saturday 21 May 2016 20:17:56 Antonio Quartulli wrote:
> > main.h is always included after the #ifdef guard except for
> > bat_v_elp.h. Move it at the right place.
> >
> > Cc: Sven Eckelmann <sven@narfation.org>
> > Signed-off-by: Antonio Quartulli <a@unstable.cc>
> > ---
>
> Good find
>
> Reviewed-by: Sven Eckelmann <sven@narfation.org>
Applied in revision f47544c.
Thanks,
Marek
@@ -15,11 +15,11 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include "main.h"
-
#ifndef _NET_BATMAN_ADV_BAT_V_ELP_H_
#define _NET_BATMAN_ADV_BAT_V_ELP_H_
+#include "main.h"
+
struct sk_buff;
struct work_struct;