Re: scripts/mod/file2alias.c cross compile problem

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Luck, Tony <tony.luck@...>
Cc: Andreas Schwab <schwab@...>, <trenn@...>, Adrian Bunk <bunk@...>, Jan Dittmer <jdi@...>, Len Brown <lenb@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-acpi@...>, <linux-kernel@...>, <linux-ia64@...>
Date: Thursday, August 2, 2007 - 2:09 pm

On Thu, Aug 02, 2007 at 10:40:14AM -0700, Luck, Tony wrote:

I second this. For anything visible in userspace from
include/* we require usage of the kernel specific
__u8, __u16, __u32, __u64 typedefs but for device_id we accept
kernel_ulong_t which result in the following crap in
file2alias.c:

/* We use the ELF typedefs for kernel_ulong_t but bite the bullet and
 * use either stdint.h or inttypes.h for the rest. */
#if KERNEL_ELFCLASS == ELFCLASS32
typedef Elf32_Addr      kernel_ulong_t;
#define BITS_PER_LONG 32
#else
typedef Elf64_Addr      kernel_ulong_t;
#define BITS_PER_LONG 64
#endif

And we ought to have __u64 available.
See for example types.h from asm-i386:
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif


	Sam
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
scripts/mod/file2alias.c cross compile problem, Adrian Bunk, (Fri Jul 27, 9:39 pm)
Re: scripts/mod/file2alias.c cross compile problem, Thomas Renninger, (Thu Aug 2, 11:09 am)
RE: scripts/mod/file2alias.c cross compile problem, Luck, Tony, (Thu Aug 2, 12:25 pm)
RE: scripts/mod/file2alias.c cross compile problem, Rusty Russell, (Thu Aug 2, 6:08 pm)
RE: scripts/mod/file2alias.c cross compile problem, Thomas Renninger, (Thu Aug 16, 10:27 am)
RE: scripts/mod/file2alias.c cross compile problem, Luck, Tony, (Thu Aug 16, 12:26 pm)
RE: scripts/mod/file2alias.c cross compile problem, Thomas Renninger, (Thu Aug 16, 1:03 pm)
Re: scripts/mod/file2alias.c cross compile problem, Adrian Bunk, (Thu Aug 2, 7:03 pm)
Re: scripts/mod/file2alias.c cross compile problem, Andreas Schwab, (Thu Aug 2, 12:36 pm)
RE: scripts/mod/file2alias.c cross compile problem, Luck, Tony, (Thu Aug 2, 1:40 pm)
Re: scripts/mod/file2alias.c cross compile problem, Sam Ravnborg, (Thu Aug 2, 2:09 pm)
Re: scripts/mod/file2alias.c cross compile problem, Adrian Bunk, (Thu Aug 2, 3:15 pm)
Re: scripts/mod/file2alias.c cross compile problem, Sam Ravnborg, (Thu Aug 2, 3:24 pm)