"KERNEL/_KERNEL/INKERNEL" macro cruft

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  can any of this be removed?  for a start, what's the point of
"#define KERNEL"?

$ grep -r "^#define KERNEL$" *
drivers/net/skfp/srf.c:#define KERNEL
drivers/net/skfp/pmf.c:#define KERNEL
drivers/net/skfp/smt.c:#define KERNEL
drivers/net/skfp/ecm.c:#define KERNEL
drivers/net/skfp/pcmplc.c:#define KERNEL
drivers/net/skfp/cfm.c:#define KERNEL
drivers/net/skfp/rmt.c:#define KERNEL
drivers/char/dtlk.c:#define KERNEL

  which seems unrelated to this:

$ grep -r "#if.* KERNEL$" *
include/linux/coda.h:#ifdef KERNEL

  and there's these lonely examples of "INKERNEL" and "_KERNEL":

$ grep -rw _KERNEL *
include/linux/coda.h:/* Catch new _KERNEL defn for NetBSD and DJGPP/__CYGWIN32__ */
include/linux/soundcard.h:#if (!defined(__KERNEL__) && !defined(KERNEL) && !defined(INKERNEL) && !defined(_KERNEL)) || defined(USE_SEQ_MACROS)

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux