Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: types: use <asm-generic/int-*.h> for the sparc architecture

This modifies <asm-sparc/types.h> to use the <asm-generic/int-*.h>
generic include files.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: William L. Irwin <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

+1 -29
+1 -29
include/asm-sparc/types.h
··· 3 3 #define _SPARC_TYPES_H 4 4 5 5 /* 6 - * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the 7 - * header files exported to user space. 8 - */ 9 - 10 - /* 11 6 * This file is never included by application software unless 12 7 * explicitly requested (e.g., via linux/types.h) in which case the 13 8 * application is Linux specific so (user-) name space pollution is 14 9 * not a major issue. However, for interoperability, libraries still 15 10 * need to be careful to avoid a name clashes. 16 11 */ 12 + #include <asm-generic/int-ll64.h> 17 13 18 14 #ifndef __ASSEMBLY__ 19 15 20 16 typedef unsigned short umode_t; 21 - 22 - typedef __signed__ char __s8; 23 - typedef unsigned char __u8; 24 - 25 - typedef __signed__ short __s16; 26 - typedef unsigned short __u16; 27 - 28 - typedef __signed__ int __s32; 29 - typedef unsigned int __u32; 30 - 31 - typedef __signed__ long long __s64; 32 - typedef unsigned long long __u64; 33 17 34 18 #endif /* __ASSEMBLY__ */ 35 19 ··· 22 38 #define BITS_PER_LONG 32 23 39 24 40 #ifndef __ASSEMBLY__ 25 - 26 - typedef __signed__ char s8; 27 - typedef unsigned char u8; 28 - 29 - typedef __signed__ short s16; 30 - typedef unsigned short u16; 31 - 32 - typedef __signed__ int s32; 33 - typedef unsigned int u32; 34 - 35 - typedef __signed__ long long s64; 36 - typedef unsigned long long u64; 37 41 38 42 typedef u32 dma_addr_t; 39 43 typedef u32 dma64_addr_t;