All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: 2.6.31.1 BUG #include <asm/bitsperlong.h>
@ 2009-09-27 11:16 Bernard Pidoux
  2009-09-27 11:24 ` Arjan van de Ven
  2009-09-27 11:46 ` Sam Ravnborg
  0 siblings, 2 replies; 14+ messages in thread
From: Bernard Pidoux @ 2009-09-27 11:16 UTC (permalink / raw)
  To: linux-kernel

The problem is that when I compile an application that never 
caused any problem before I get an error due to incorrect reference to <asm/bitsperlong>

This was due to int-ll64.h including <asm/bitsperlong.h> which does not exists.

Is the correct solution to replace symbolic link ?

/usr/src/linux/include/asm->asm-x86

by

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

Bernard Pidoux




On Sun, Sep 27, 2009 at 11:56:47AM +0200, Bernard Pidoux wrote:
> 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


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: 2.6.31.1 BUG #include <asm/bitsperlong.h>
@ 2009-09-27 11:36 Bernard Pidoux
  2009-09-27 11:57 ` Bernard Pidoux
  2009-09-27 16:58 ` arnd
  0 siblings, 2 replies; 14+ messages in thread
From: Bernard Pidoux @ 2009-09-27 11:36 UTC (permalink / raw)
  To: linux-kernel

This is a user space application.

Here is Gcc error message :

gcc -Wall -Wstrict-prototypes -O2 -ggdb2 -funsigned-char  -D__LINUX__ -Wformat-security -D_FORTIFY_SOURCE=2 -DPROTOTYPES -I../lib -I/usr/src/linux/include -fstack-check -fstack-protector-all -c listen.c
Dans le fichier inclus à partir de /usr/include/asm/types.h:4,
          à partir de /usr/src/linux/include/linux/types.h:4,
          à partir de /usr/src/linux/include/linux/if_ether.h:24,
          à partir de /usr/include/net/ethernet.h:27,
          à partir de listen.c:21:
/usr/src/linux/include/asm-generic/int-ll64.h:11:29: erreur: asm/bitsperlong.h : Aucun fichier ou dossier de ce type
listen.c: In function ‘main’:



On Sun, 27 Sep 2009 13:16:41 +0200
Bernard Pidoux <bernard.pidoux@upmc.fr> wrote:

> The problem is that when I compile an application that never 
> caused any problem before I get an error due to incorrect reference
> to <asm/bitsperlong>

is this a userspace application? or some kernel module?



-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org



^ permalink raw reply	[flat|nested] 14+ messages in thread
* 2.6.31.1 BUG #include <asm/bitsperlong.h>
@ 2009-09-27  9:56 Bernard Pidoux
  2009-09-27 10:22 ` Sam Ravnborg
  0 siblings, 1 reply; 14+ messages in thread
From: Bernard Pidoux @ 2009-09-27  9:56 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-09-27 18:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-27 11:16 2.6.31.1 BUG #include <asm/bitsperlong.h> Bernard Pidoux
2009-09-27 11:24 ` Arjan van de Ven
2009-09-27 11:46 ` Sam Ravnborg
  -- strict thread matches above, loose matches on Subject: below --
2009-09-27 11:36 Bernard Pidoux
2009-09-27 11:57 ` Bernard Pidoux
2009-09-27 12:44   ` Bernard Pidoux
2009-09-27 13:19     ` Arjan van de Ven
2009-09-27 16:29       ` Bernard Pidoux
2009-09-27 16:50         ` Arjan van de Ven
2009-09-27 17:35       ` Bernard Pidoux
2009-09-27 16:58 ` arnd
2009-09-27 18:33   ` Bernard Pidoux
2009-09-27  9:56 Bernard Pidoux
2009-09-27 10:22 ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.