Netdev Archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] if_tunnel.h: add missing ams/byteorder.h include
@ 2010-03-19 15:09 Paulius Zaleckas
  2010-03-22  4:19 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Paulius Zaleckas @ 2010-03-19 15:09 UTC (permalink / raw
  To: davem; +Cc: contact, eric.dumazet, Fred.L.Templin, netdev, linux-kernel

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>
---

 include/linux/if_tunnel.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h
index 1822d63..16b92d0 100644
--- 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>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] if_tunnel.h: add missing ams/byteorder.h include
  2010-03-19 15:09 [PATCH v2] if_tunnel.h: add missing ams/byteorder.h include Paulius Zaleckas
@ 2010-03-22  4:19 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-03-22  4:19 UTC (permalink / raw
  To: paulius.zaleckas
  Cc: contact, eric.dumazet, Fred.L.Templin, netdev, linux-kernel

From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Date: Fri, 19 Mar 2010 17:09:26 +0200

> 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>

This slipped through the cracks, someone else submitted something
similar back in August 2009 it seems.

Thanks for sending this, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-22  4:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 15:09 [PATCH v2] if_tunnel.h: add missing ams/byteorder.h include Paulius Zaleckas
2010-03-22  4:19 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).