mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@mindspring.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: "KERNEL/_KERNEL/INKERNEL" macro cruft
Date: Fri, 4 May 2007 04:23:36 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0705040415360.22553@localhost.localdomain> (raw)


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

                 reply	other threads:[~2007-05-04  8:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0705040415360.22553@localhost.localdomain \
    --to=rpjday@mindspring.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®