From: David Woodhouse Date: Thu, 4 May 2006 11:07:37 +0000 (+0100) Subject: Remove PPP_FCS from user view in , remove __P mess entirely X-Git-Tag: v2.6.18-rc1~1103^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2c88f4a8bc4276013f7eee7824056d9cecccadb1;p=linux-2.6-omap-h63xx.git Remove PPP_FCS from user view in , remove __P mess entirely Signed-off-by: David Woodhouse --- diff --git a/include/linux/ppp_defs.h b/include/linux/ppp_defs.h index 402056cd049..c6b13ff8502 100644 --- a/include/linux/ppp_defs.h +++ b/include/linux/ppp_defs.h @@ -42,8 +42,6 @@ #ifndef _PPP_DEFS_H_ #define _PPP_DEFS_H_ -#include - /* * The basic PPP frame. */ @@ -97,7 +95,11 @@ #define PPP_INITFCS 0xffff /* Initial FCS value */ #define PPP_GOODFCS 0xf0b8 /* Good final FCS value */ + +#ifdef __KERNEL__ +#include #define PPP_FCS(fcs, c) crc_ccitt_byte(fcs, c) +#endif /* * Extended asyncmap - allows any character to be escaped. @@ -179,12 +181,4 @@ struct ppp_idle { time_t recv_idle; /* time since last NP packet received */ }; -#ifndef __P -#ifdef __STDC__ -#define __P(x) x -#else -#define __P(x) () -#endif -#endif - #endif /* _PPP_DEFS_H_ */