Re: bitops.h ifdef __KERNEL__ cleanup.

2001-07-19 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:David Woodhouse <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > It has been stated many times that kernel headers should not be used in > apps. Renaming or moving them should not be necessary - and people would > probably only start to use th

Re: bitops.h ifdef __KERNEL__ cleanup.

2001-07-19 Thread David Woodhouse
[EMAIL PROTECTED] said: > If you do not want kernel headers to be used in apps, just move them > from asm and linux into msa and xunil. Then you can simple remove all > #ifdef __KERNEL__ from them... It has been stated many times that kernel headers should not be used in apps. Renaming or movin

Re: bitops.h ifdef __KERNEL__ cleanup.

2001-07-19 Thread Russell King
On Thu, Jul 19, 2001 at 07:21:48PM +, Petr Vandrovec wrote: > Maybe because of I do not know ARM assembler? If you do not want > kernel headers to be used in apps, just move them from asm and linux > into msa and xunil. Then you can simple remove all #ifdef __KERNEL__ > from them... Why shoul

Re: bitops.h ifdef __KERNEL__ cleanup.

2001-07-19 Thread Petr Vandrovec
On 19 Jul 01 at 12:48, Russell King wrote: > > I totally disagree here. We already say "user space should not include > kernel headers". Why should bitops.h be any different? Why should atomic.h > be any different? They contain architecture specific code, yes, which > may not work in user spa