]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix userland breakage wrt. linux/if_tunnel.h
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Feb 2009 21:27:44 +0000 (13:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Feb 2009 21:27:44 +0000 (13:27 -0800)
commit58a4a6a7e80c0d5f286dd596351cb24fd767ae08
treea8b724ce55da03c5c1ea1152a57d7bb6c6b22ee6
parent958ea73dfd01ddc530d46b06452c1e74b0d4f387
net: Fix userland breakage wrt. linux/if_tunnel.h

Reported by Andrew Walrond <andrew@walrond.org>

Changeset e2f1ea03a214c0d4f349c6f6f519193c4a5aa972
("gre: Add netlink interface") added an include
of linux/ip.h to linux/if_tunnel.h

We can't really let that get exposed to userspace
because this conflicts with types defined in netinet/ip.h
which userland is almost certainly going to have included
either explicitly or implicitly.

So guard this include with a __KERNEL__ ifdef.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/Kbuild
include/linux/if_tunnel.h