Skip to content

Commit

Permalink
batman-adv: Include main.h in bat_v_ogm.h
Browse files Browse the repository at this point in the history
main.h includes statements which (re)define preprocessor variables which
influence the compiled code. This makes it necessary to include it in all
files. For example, it redefines pr_fmt used to the module as prefix for
each pr_* message.

Reported-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
  • Loading branch information
Sven Eckelmann authored and Simon Wunderlich committed Jun 30, 2016
1 parent 4e3e823 commit 67a5613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/batman-adv/bat_v_ogm.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#ifndef _BATMAN_ADV_BATADV_V_OGM_H_
#define _BATMAN_ADV_BATADV_V_OGM_H_

#include "main.h"

#include <linux/types.h>

struct batadv_hard_iface;
struct batadv_priv;
struct sk_buff;

int batadv_v_ogm_init(struct batadv_priv *bat_priv);
Expand Down

0 comments on commit 67a5613

Please sign in to comment.