linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: compilation error when including asm/system.h in user mode code
@ 2006-06-21 21:49 А.И. Ченцов
  0 siblings, 0 replies; only message in thread
From: А.И. Ченцов @ 2006-06-21 21:49 UTC (permalink / raw)
  To: linux-kernel

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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-21 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 21:49 PROBLEM: compilation error when including asm/system.h in user mode code А.И. Ченцов

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).