2005-04-16 16:20:36 -06:00
|
|
|
#ifndef _ALPHA_TYPES_H
|
|
|
|
#define _ALPHA_TYPES_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is never included by application software unless
|
|
|
|
* explicitly requested (e.g., via linux/types.h) in which case the
|
|
|
|
* application is Linux specific so (user-) name space pollution is
|
|
|
|
* not a major issue. However, for interoperability, libraries still
|
|
|
|
* need to be careful to avoid a name clashes.
|
|
|
|
*/
|
2008-04-06 11:35:00 -06:00
|
|
|
#include <asm-generic/int-l64.h>
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef unsigned int umode_t;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
#define BITS_PER_LONG 64
|
|
|
|
|
fix asm-alpha/types.h breakage
This patch fixes the following compile error on alpha caused by
commit 3726c23df8e4d95b6f2b335dfa90e3f4850a8a00
(alpha: types: use <asm-generic/int-*.h> for the alpha architecture):
<-- snip -->
...
CC arch/alpha/kernel/asm-offsets.s
In file included from include2/asm/topology.h:6,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/topology.h:34,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/mmzone.h:683,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/gfp.h:4,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/slab.h:12,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/percpu.h:5,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/rcupdate.h:39,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/pid.h:4,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/sched.h:74,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/alpha/kernel/asm-offsets.c:9:
include2/asm/machvec.h:44: error: expected declaration specifiers or '...' before 'dma_addr_t'
include2/asm/machvec.h:44: error: expected declaration specifiers or '...' before 'dma_addr_t'
In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/alpha/kernel/asm-offsets.c:12:
include2/asm/io.h:94: warning: type defaults to 'int' in declaration of 'dma_addr_t'
include2/asm/io.h:94: warning: variable 'dma_addr_t' declared 'inline'
include2/asm/io.h:94: error: expected ',' or ';' before 'isa_page_to_bus'
make[2]: *** [arch/alpha/kernel/asm-offsets.s] Error 1
<-- snip -->
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-05-03 14:51:03 -06:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef u64 dma_addr_t;
|
|
|
|
typedef u64 dma64_addr_t;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
2005-04-16 16:20:36 -06:00
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* _ALPHA_TYPES_H */
|