Skip to contentSkip to conversation

2.6.31.1 BUG #include <asm/bitsperlong.h>

DISCUSSION Bernard Pidoux 2 participants 2 messages Sep 27, 2009

lore
Share & tools
lore
#0 lore raw

In kernel 2.6.31.1 the following files in

/usr/src/linux-2.6.31.1/include/asm-generic/

include <asm/bitsperlong.h>

while they should #include <asm-generic/bitsperlong.h>

int-l64.h:#include <asm/bitsperlong.h>
int-ll64.h:#include <asm/bitsperlong.h>
msgbuf.h:#include <asm/bitsperlong.h>
posix_types.h:#include <asm/bitsperlong.h>
sembuf.h:#include <asm/bitsperlong.h>
shmbuf.h:#include <asm/bitsperlong.h>
stat.h:#include <asm/bitsperlong.h>
swab.h:#include <asm/bitsperlong.h>
unistd.h:#include <asm/bitsperlong.h>

Regards,

Bernard Pidoux

#1 lore raw
Quoted 7 lines · Bernard Pidoux

In kernel 2.6.31.1 the following files in

/usr/src/linux-2.6.31.1/include/asm-generic/

include <asm/bitsperlong.h>

while they should #include <asm-generic/bitsperlong.h>

It would be wrong to include the generic version
directly.
We need access to the arch specifics definitions
before we include the generic version.

See how different architectures does various things in their: arch/$(ARCH)/include/asm/bitsperlong.h

Sam