Re: __KERNEL__ and __MODULE__

2007-02-01 Thread Robert P. J. Day
On Thu, 1 Feb 2007, Simon Valiquette wrote: > Daniel Rodrick un jour écrivit: > > 2) Why two variants ? KERNEL V/s __KERNEL__ and MODULE v/s __MODULE__? > > AFAIK, there is only MODULE and __KERNEL__. I don't think that > __MODULE__ or KERNEL exist. I greped the 2.6.17 kernel just to be > sur

Re: __KERNEL__ and __MODULE__

2007-02-01 Thread Simon Valiquette
Daniel Rodrick un jour écrivit: Hi, I find a lot of code buried within #ifdefs for the following variables: MODULE / __MODULE__ KERNEL / __KERNEL__ 1) AFAIK, the MODULE / __MODULE__ is defined when my drievr is selected to be compiled as a module, and the KERNEL / __KERNEL__ is defined when is

__KERNEL__ and __MODULE__

2007-01-31 Thread Daniel Rodrick
Hi, I find a lot of code buried within #ifdefs for the following variables: MODULE / __MODULE__ KERNEL / __KERNEL__ 1) AFAIK, the MODULE / __MODULE__ is defined when my drievr is selected to be compiled as a module, and the KERNEL / __KERNEL__ is defined when is is selected to be built in the k