lkml.org 
[lkml]   [2006]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPROBLEM: compilation error when including asm/system.h in user mode code
Date
Description:
Starting 2.6.15 'include/asm-i386/system.h' has lines (301-304)

extern unsigned long cmpxchg_386_u8(volatile void *, u8, u8);
extern unsigned long cmpxchg_386_u16(volatile void *, u16, u16);
extern unsigned long cmpxchg_386_u32(volatile void *, u32, u32);

Here u8, u16, u32 types used in nonkernel namespace producing undefined type
errors.

Solution:
Rename types to __u8, __u16, __u32.

Since a few distributions derive their glibc kernel headers directly from
kernel the problem is quite relevant.

Regards,
A. Chentsov.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-21 23:52    [W:0.024 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site