[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#252338: /usr/include/asm/system.h: asm/system.h: missing include file on amd64



Daniel Jacobowitz <dan@debian.org> writes:

> On Fri, Jun 04, 2004 at 03:59:37PM +0200, Goswin von Brederlow wrote:
>> Daniel Jacobowitz <dan@debian.org> writes:
>> 
>> > On Wed, Jun 02, 2004 at 07:43:11PM +0000, Goswin von Brederlow wrote:
>> >> Package: linux-kernel-headers
>> >> Version: 2.5.999-test7-bk-15.amd64.1.0.1
>> >> Severity: normal
>> >> File: /usr/include/asm/system.h
>> >> 
>> >> Hi,
>> >> 
>> >> the asm/system.h file fails because LOCK_PREFIX is undefined. On i386 this
>> >> is set by
>> >> 
>> >> #include <linux/bitops.h> /* for LOCK_PREFIX */
>> >> 
>> >> on amd64 it is set directly in asm/system.h but only inside
>> >> #ifdef __KERNEL__, but it is used outside the ifdef.
>> >
>> > What is including <asm/system.h>?
>> >
>> > -- 
>> > Daniel Jacobowitz
>> 
>> Amiga-fdisk is doing so directly.
>
> For what reason?  To get what?

For no reason it seems. I filed a seperate bug about it since it
causes amiga-fdisk to FTBFS on m68k.

> We do not support including arbitrary kernel headers.  Some of the ones
> under linux/ are accepted as userspace interfaces.  Others are included
> by glibc.  But the reset we try not to fix for userspace use; copy out
> what you need.

If any glibc or linux/ header includes it it should experience the
same problem. If nothing does the file could be removed.

If you know of something making legal use of asm/system.h I would be
happy to test it.

MfG
        Goswin

PS: on m68k the same file fails with u8, u16 and u32 being undefined.



Reply to: