includes build break - was Re: [net-next-2.6 PATCH v5 0/3] Introduce n-tuple ethtool support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Hartkopp
Date: Sunday, February 14, 2010 - 4:56 am

David Miller wrote:

Hi Peter,

compiling the latest net-next-2.6 i got this problem:
 
  CHECK   include/linux (358 files)
/home/hartko/net-next-2.6/usr/include/linux/ethtool.h:17: included file 'linux/rculist.h' is not exported

Which has been introduced by

http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=15682b...

("ethtool: Introduce n-tuple filter programming support")

The patch below fixes the issue.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>

---

diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index a3cac53..83a9a53 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -14,7 +14,9 @@
 #define _LINUX_ETHTOOL_H
 
 #include <linux/types.h>
+#ifdef __KERNEL__
 #include <linux/rculist.h>
+#endif
 
 /* This should work for both 32 and 64 bit userland. */
 struct ethtool_cmd {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [net-next-2.6 PATCH v5 0/3] Introduce n-tuple ethtool ..., Peter P Waskiewicz Jr, (Wed Feb 10, 9:18 pm)
includes build break - was Re: [net-next-2.6 PATCH v5 0/3] ..., Oliver Hartkopp, (Sun Feb 14, 4:56 am)