[PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h>

From: Tom Rini
Date: Thu Nov 04 2004 - 12:41:48 EST


Hello. The following adds a __KERNEL__ check to <linux/crc-ccitt.h>.
The problem is that the ppp package includes <linux/ppp_defs.h> via
<net/ppp_defs.h>, which in turn gets <linux/crc-ccitt.h>.

Signed-off-by: Tom Rini <trini@xxxxxxxxxxxxxxxxxxx>

--- 1.2/include/linux/crc-ccitt.h 2004-07-11 01:54:19 -07:00
+++ edited/include/linux/crc-ccitt.h 2004-11-04 10:34:24 -07:00
@@ -1,5 +1,6 @@
#ifndef _LINUX_CRC_CCITT_H
#define _LINUX_CRC_CCITT_H
+#ifdef __KERNEL__

#include <linux/types.h>

@@ -12,4 +13,5 @@
return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff];
}

+#endif /* __KERNEL__ */
#endif /* _LINUX_CRC_CCITT_H */

--
Tom Rini
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/