diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-09-21 03:48:27 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-09-21 03:48:27 -0400 |
commit | 09087a1a8722fac30b1969a4a542cde064af13f8 (patch) | |
tree | f49a0f35ea85e2756c147269da11c8526112cbbf | |
parent | 47dbec79d1b9ce9e80bed932f345adc92049f05d (diff) |
Fix exported headers for SPARC, SPARC64
Mostly removing files which have no business being used in userspace.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/asm-sparc/Kbuild | 7 | ||||
-rw-r--r-- | include/asm-sparc/page.h | 8 | ||||
-rw-r--r-- | include/asm-sparc64/Kbuild | 5 | ||||
-rw-r--r-- | include/asm-sparc64/page.h | 9 | ||||
-rw-r--r-- | include/asm-sparc64/shmparam.h | 2 |
5 files changed, 11 insertions, 20 deletions
diff --git a/include/asm-sparc/Kbuild b/include/asm-sparc/Kbuild index b22b67a64ecc..c6a55cf0d337 100644 --- a/include/asm-sparc/Kbuild +++ b/include/asm-sparc/Kbuild | |||
@@ -2,20 +2,13 @@ include include/asm-generic/Kbuild.asm | |||
2 | 2 | ||
3 | header-y += apc.h | 3 | header-y += apc.h |
4 | header-y += asi.h | 4 | header-y += asi.h |
5 | header-y += auxio.h | ||
6 | header-y += bpp.h | 5 | header-y += bpp.h |
7 | header-y += head.h | ||
8 | header-y += ipc.h | ||
9 | header-y += jsflash.h | 6 | header-y += jsflash.h |
10 | header-y += openpromio.h | 7 | header-y += openpromio.h |
11 | header-y += pbm.h | ||
12 | header-y += pconf.h | 8 | header-y += pconf.h |
13 | header-y += pgtsun4.h | ||
14 | header-y += reg.h | 9 | header-y += reg.h |
15 | header-y += traps.h | 10 | header-y += traps.h |
16 | header-y += turbosparc.h | ||
17 | header-y += vfc_ioctls.h | 11 | header-y += vfc_ioctls.h |
18 | header-y += winmacro.h | ||
19 | 12 | ||
20 | unifdef-y += fbio.h | 13 | unifdef-y += fbio.h |
21 | unifdef-y += perfctr.h | 14 | unifdef-y += perfctr.h |
diff --git a/include/asm-sparc/page.h b/include/asm-sparc/page.h index 5bab8a7c25ce..ff57648eb8f8 100644 --- a/include/asm-sparc/page.h +++ b/include/asm-sparc/page.h | |||
@@ -8,6 +8,8 @@ | |||
8 | #ifndef _SPARC_PAGE_H | 8 | #ifndef _SPARC_PAGE_H |
9 | #define _SPARC_PAGE_H | 9 | #define _SPARC_PAGE_H |
10 | 10 | ||
11 | #ifdef __KERNEL__ | ||
12 | |||
11 | #ifdef CONFIG_SUN4 | 13 | #ifdef CONFIG_SUN4 |
12 | #define PAGE_SHIFT 13 | 14 | #define PAGE_SHIFT 13 |
13 | #else | 15 | #else |
@@ -21,8 +23,6 @@ | |||
21 | #endif | 23 | #endif |
22 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 24 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
23 | 25 | ||
24 | #ifdef __KERNEL__ | ||
25 | |||
26 | #include <asm/btfixup.h> | 26 | #include <asm/btfixup.h> |
27 | 27 | ||
28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
@@ -160,9 +160,9 @@ extern unsigned long pfn_base; | |||
160 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 160 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
161 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 161 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
162 | 162 | ||
163 | #endif /* __KERNEL__ */ | ||
164 | |||
165 | #include <asm-generic/memory_model.h> | 163 | #include <asm-generic/memory_model.h> |
166 | #include <asm-generic/page.h> | 164 | #include <asm-generic/page.h> |
167 | 165 | ||
166 | #endif /* __KERNEL__ */ | ||
167 | |||
168 | #endif /* _SPARC_PAGE_H */ | 168 | #endif /* _SPARC_PAGE_H */ |
diff --git a/include/asm-sparc64/Kbuild b/include/asm-sparc64/Kbuild index 4b59ce46cc2d..a7f44408c93b 100644 --- a/include/asm-sparc64/Kbuild +++ b/include/asm-sparc64/Kbuild | |||
@@ -8,15 +8,12 @@ header-y += apb.h | |||
8 | header-y += asi.h | 8 | header-y += asi.h |
9 | header-y += bbc.h | 9 | header-y += bbc.h |
10 | header-y += bpp.h | 10 | header-y += bpp.h |
11 | header-y += const.h | ||
11 | header-y += display7seg.h | 12 | header-y += display7seg.h |
12 | header-y += envctrl.h | 13 | header-y += envctrl.h |
13 | header-y += floppy.h | ||
14 | header-y += ipc.h | 14 | header-y += ipc.h |
15 | header-y += kdebug.h | ||
16 | header-y += mostek.h | ||
17 | header-y += openprom.h | 15 | header-y += openprom.h |
18 | header-y += openpromio.h | 16 | header-y += openpromio.h |
19 | header-y += parport.h | ||
20 | header-y += pconf.h | 17 | header-y += pconf.h |
21 | header-y += psrcompat.h | 18 | header-y += psrcompat.h |
22 | header-y += pstate.h | 19 | header-y += pstate.h |
diff --git a/include/asm-sparc64/page.h b/include/asm-sparc64/page.h index fdf0ceb76028..ff736eafa64d 100644 --- a/include/asm-sparc64/page.h +++ b/include/asm-sparc64/page.h | |||
@@ -3,6 +3,8 @@ | |||
3 | #ifndef _SPARC64_PAGE_H | 3 | #ifndef _SPARC64_PAGE_H |
4 | #define _SPARC64_PAGE_H | 4 | #define _SPARC64_PAGE_H |
5 | 5 | ||
6 | #ifdef __KERNEL__ | ||
7 | |||
6 | #include <asm/const.h> | 8 | #include <asm/const.h> |
7 | 9 | ||
8 | #if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) | 10 | #if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) |
@@ -27,8 +29,6 @@ | |||
27 | #define DCACHE_ALIASING_POSSIBLE | 29 | #define DCACHE_ALIASING_POSSIBLE |
28 | #endif | 30 | #endif |
29 | 31 | ||
30 | #ifdef __KERNEL__ | ||
31 | |||
32 | #if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB) | 32 | #if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB) |
33 | #define HPAGE_SHIFT 22 | 33 | #define HPAGE_SHIFT 22 |
34 | #elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K) | 34 | #elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K) |
@@ -141,8 +141,7 @@ typedef unsigned long pgprot_t; | |||
141 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 141 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
142 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 142 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
143 | 143 | ||
144 | #endif /* !(__KERNEL__) */ | ||
145 | |||
146 | #include <asm-generic/page.h> | 144 | #include <asm-generic/page.h> |
147 | 145 | ||
148 | #endif /* !(_SPARC64_PAGE_H) */ | 146 | #endif /* __KERNEL__ */ |
147 | #endif /* _SPARC64_PAGE_H */ | ||
diff --git a/include/asm-sparc64/shmparam.h b/include/asm-sparc64/shmparam.h index 8c66fded8a32..911d0427de6d 100644 --- a/include/asm-sparc64/shmparam.h +++ b/include/asm-sparc64/shmparam.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* $Id: shmparam.h,v 1.5 2001/09/24 21:17:57 kanoj Exp $ */ | 1 | /* $Id: shmparam.h,v 1.5 2001/09/24 21:17:57 kanoj Exp $ */ |
2 | #ifndef _ASMSPARC64_SHMPARAM_H | 2 | #ifndef _ASMSPARC64_SHMPARAM_H |
3 | #define _ASMSPARC64_SHMPARAM_H | 3 | #define _ASMSPARC64_SHMPARAM_H |
4 | #ifdef __KERNEL__ | ||
4 | 5 | ||
5 | #include <asm/spitfire.h> | 6 | #include <asm/spitfire.h> |
6 | 7 | ||
@@ -8,4 +9,5 @@ | |||
8 | /* attach addr a multiple of this */ | 9 | /* attach addr a multiple of this */ |
9 | #define SHMLBA ((PAGE_SIZE > L1DCACHE_SIZE) ? PAGE_SIZE : L1DCACHE_SIZE) | 10 | #define SHMLBA ((PAGE_SIZE > L1DCACHE_SIZE) ? PAGE_SIZE : L1DCACHE_SIZE) |
10 | 11 | ||
12 | #endif /* __KERNEL__ */ | ||
11 | #endif /* _ASMSPARC64_SHMPARAM_H */ | 13 | #endif /* _ASMSPARC64_SHMPARAM_H */ |