Linux 2.6.25 - posix_types.h
PATCH 1/1 Linux 2.6.25 - posix_types.h
Linus,
The latest git download changes the behavior of posix_types.h such that non-kernel programs are no longer able to include posix types (e.g. xserver can no longer be compiled).
I don't know whether this is intended or a bug.
Attached is a patch to allow __i386__ as was done in the past.
Thanks,
Jeff.
include/asm-x86/posix_types.h renamed from include/asm-x86/posix_types.h.org +2 -2
@@ -1,5 +1,5 @@ -#ifdef __KERNEL__ -# if defined(CONFIG_X86_32 ) || defined(__i386__) +#if defined(__KERNEL__) || defined(__i386__) +# if defined(CONFIG_X86_32 )# include "posix_types_32.h" # else # include "posix_types_64.h"
PATCH 1/1 fix asm-x86/{posix_types,unistd}.h
Quoted 8 lines · Jeff Chua
Linus,
The latest git download changes the behavior of
posix_types.hsuch that non-kernel programs are no longer able to include posix types (e.g. xserver can no longer be compiled).I don't know whether this is intended or a bug.
Thanks for reporting this bug.
Commit e40c0fe6b0b5dd16aec3c0dad311d36b19d78fd9 (x86: cleanup duplicate includes) contains no indication this was intentional.
@Joe:
Please be more careful in the future.
@Ingo:
A proper review of the patch could have caught this bug that now made it into a stable kernel.
Quoted 9 lines
Attached is a patch to allow
__i386__as was done in the past.Thanks,
Jeff.
include/asm-x86/posix_types.h line 5
Quoted 7 lines
include/asm-x86/posix_types.h renamed from include/asm-x86/posix_types.h.org +2
-2@@ -1,5 +1,5 @@ -#ifdef __KERNEL__ -# if defined(CONFIG_X86_32 ) || defined(__i386__) +#if defined(__KERNEL__) || defined(__i386__) +# if defined(CONFIG_X86_32 )# include "posix_types_32.h" # else # include "posix_types_64.h"
This doesn't look as if it will work with 64bit userspace.
A patch that reverts the bogus changes to asm-x86/posix_types.h and asm-x86/unistd.h (which suffers from the same breakage) is below.
cu
Adrian
<-- snip -->
Commit e40c0fe6b0b5dd16aec3c0dad311d36b19d78fd9 (x86: cleanup duplicate includes) turned the userspace asm-x86/posix_types.h and asm-x86/unistd.h headers into empty files.
This patch reverts these bogus changes.
---
include/asm-x86/posix_types.h | 8 +++++++- include/asm-x86/unistd.h | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-)
ab170018723af65f4020db74757e4949d110963a diff --git a/include/asm-x86/posix_types.h b/include/asm-x86/posix_types.h index fe312a5..bb7133d 100644
include/asm-x86/posix_types.h +7 -1
@@ -1,5 +1,11 @@#ifdef __KERNEL__ -# if defined(CONFIG_X86_32 ) || defined(__i386__) +# ifdef CONFIG_X86_32 +# include "posix_types_32.h" +# else +# include "posix_types_64.h" +# endif +#else +# ifdef __i386__# include "posix_types_32.h" # else # include "posix_types_64.h"
include/asm-x86/unistd.h +7 -1
@@ -1,5 +1,11 @@#ifdef __KERNEL__ -# if defined(CONFIG_X86_32 ) || defined(__i386__) +# ifdef CONFIG_X86_32 +# include "unistd_32.h" +# else +# include "unistd_64.h" +# endif +#else +# ifdef __i386__# include "unistd_32.h" # else # include "unistd_64.h"
Re: [2.6 patch] fix asm-x86/{posix_types,unistd}.h
Quoted 1 line · Adrian Bunk
This doesn't look as if it will work with 64bit userspace.
I forgot about that. Sorry, still on 32-bit.
Thanks,
Jeff.