Commit 9bf35c8dddd56f7f247a27346f74f5adc18071f4

Authored by Paulius Zaleckas
Committed by David S. Miller
1 parent 5e016cbf6c

if_tunnel.h: add missing ams/byteorder.h include

When compiling userspace application which includes
if_tunnel.h and uses GRE_* defines you will get undefined
reference to __cpu_to_be16.

Fix this by adding missing #include <asm/byteorder.h>

Cc: stable@kernel.org
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

include/linux/if_tunnel.h
... ... @@ -2,6 +2,7 @@
2 2 #define _IF_TUNNEL_H_
3 3  
4 4 #include <linux/types.h>
  5 +#include <asm/byteorder.h>
5 6  
6 7 #ifdef __KERNEL__
7 8 #include <linux/ip.h>