Re: who defines __KERNEL__ ?

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

 



On Dec 12, 2007 9:26 AM, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote:
> Hi all,
>
> Should I define __KERNEL__ in my in-tree kernel module (that may
> be compiled as built-in if the user wanted) ?

No.

> Or does it gets defined automatically by kbuild ?

$ grep __KERNEL__ Makefile
KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)

(Yes.)

> Thank you
> naziir


Vegard

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux