asm-x86/* exported headers using CONFIG_X86_32

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Monday, October 15, 2007 - 3:53 pm

While looking through the new header files, I noticed lots of occurences
of #ifdef CONFIG_X86_32 in headers files exported for glibc.

This is fundamentally broken because user applications including them
do not know about any CONFIG_* symbols, and if they did, those
would incorrectly describe the ABI.

I guess in most cases, the headers that are interesting to user space
can simply be merged without any such #ifdef remaining, but those
that are still needed should be converted to use #ifdef __x86_64__,
which is set by the compiler.
This is how the other architectures avoid this particular problem.

	Arnd <><
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
asm-x86/* exported headers using CONFIG_X86_32, Arnd Bergmann, (Mon Oct 15, 3:53 pm)
Re: asm-x86/* exported headers using CONFIG_X86_32, Thomas Gleixner, (Mon Oct 15, 4:01 pm)