Commit 5eab006d authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

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

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: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 27ec38fd
#ifndef _LINUX_CRC_CCITT_H #ifndef _LINUX_CRC_CCITT_H
#define _LINUX_CRC_CCITT_H #define _LINUX_CRC_CCITT_H
#ifdef __KERNEL__
#include <linux/types.h> #include <linux/types.h>
...@@ -12,4 +13,5 @@ static inline u16 crc_ccitt_byte(u16 crc, const u8 c) ...@@ -12,4 +13,5 @@ static inline u16 crc_ccitt_byte(u16 crc, const u8 c)
return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff]; return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff];
} }
#endif /* __KERNEL__ */
#endif /* _LINUX_CRC_CCITT_H */ #endif /* _LINUX_CRC_CCITT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment