mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h>
@ 2004-11-04 17:37 Tom Rini
  2004-11-05  0:32 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2004-11-04 17:37 UTC (permalink / raw)
  To: Andrew Morton, Kernel Mailing List; +Cc: Paul Mackerras

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@kernel.crashing.org>

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

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

* Re: [PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h>
  2004-11-04 17:37 [PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h> Tom Rini
@ 2004-11-05  0:32 ` Paul Mackerras
  2004-11-05  1:04   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2004-11-05  0:32 UTC (permalink / raw)
  To: Tom Rini; +Cc: Andrew Morton, Kernel Mailing List

Tom Rini writes:

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

By "the ppp package" do you mean my pppd or someone else's package?  I
though I had my version using a local copy of the necessary headers.

Paul.

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

* Re: [PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h>
  2004-11-05  0:32 ` Paul Mackerras
@ 2004-11-05  1:04   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2004-11-05  1:04 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Andrew Morton, Kernel Mailing List

On Fri, Nov 05, 2004 at 11:32:03AM +1100, Paul Mackerras wrote:
> Tom Rini writes:
> 
> > 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>.
> 
> By "the ppp package" do you mean my pppd or someone else's package?  I
> though I had my version using a local copy of the necessary headers.

ppp_2.4.2+20040202.orig.tar.gz (Debian's ppp_2.4.2+20040202-3).

-- 
Tom Rini
http://gate.crashing.org/~trini/

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

end of thread, other threads:[~2004-11-05  1:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-04 17:37 [PATCH 2.6.10-rc1] Add __KERNEL__ to <linux/crc-ccitt.h> Tom Rini
2004-11-05  0:32 ` Paul Mackerras
2004-11-05  1:04   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®