[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[081/116] if_tunnel.h: add missing ams/byteorder.h include
2.6.32-stable review patch.  If anyone has any objections, please let us know.


From: Paulius Zaleckas <>

commit 9bf35c8dddd56f7f247a27346f74f5adc18071f4 upstream.

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>

Signed-off-by: Paulius Zaleckas <>
Signed-off-by: David S. Miller <>
Signed-off-by: Greg Kroah-Hartman <>

include/linux/if_tunnel.h | 1 +
1 file changed, 1 insertion(+)

--- a/include/linux/if_tunnel.h
+++ b/include/linux/if_tunnel.h
@@ -2,6 +2,7 @@
#define _IF_TUNNEL_H_

#include <linux/types.h>
+#include <asm/byteorder.h>

#ifdef __KERNEL__
#include <linux/ip.h>

 \ /
  Last update: 2010-03-31 02:05    [W:0.859 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site