diff options
-rw-r--r-- | include/asm-sparc64/Kbuild | 1 | ||||
-rw-r--r-- | include/asm-sparc64/const.h | 19 | ||||
-rw-r--r-- | include/asm-sparc64/lsu.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/mmu.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/page.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/pgtable.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/pstate.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/sfafsr.h | 2 | ||||
-rw-r--r-- | include/asm-x86_64/Kbuild | 1 | ||||
-rw-r--r-- | include/asm-x86_64/page.h | 2 | ||||
-rw-r--r-- | include/asm-x86_64/pgtable.h | 2 | ||||
-rw-r--r-- | include/linux/Kbuild | 1 | ||||
-rw-r--r-- | include/linux/const.h (renamed from include/asm-x86_64/const.h) | 9 |
13 files changed, 13 insertions, 34 deletions
diff --git a/include/asm-sparc64/Kbuild b/include/asm-sparc64/Kbuild index a7f44408c93b..854fd3a65acf 100644 --- a/include/asm-sparc64/Kbuild +++ b/include/asm-sparc64/Kbuild | |||
@@ -8,7 +8,6 @@ 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 | ||
12 | header-y += display7seg.h | 11 | header-y += display7seg.h |
13 | header-y += envctrl.h | 12 | header-y += envctrl.h |
14 | header-y += ipc.h | 13 | header-y += ipc.h |
diff --git a/include/asm-sparc64/const.h b/include/asm-sparc64/const.h deleted file mode 100644 index 8ad902b2ce04..000000000000 --- a/include/asm-sparc64/const.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* const.h: Macros for dealing with constants. */ | ||
2 | |||
3 | #ifndef _SPARC64_CONST_H | ||
4 | #define _SPARC64_CONST_H | ||
5 | |||
6 | /* Some constant macros are used in both assembler and | ||
7 | * C code. Therefore we cannot annotate them always with | ||
8 | * 'UL' and other type specificers unilaterally. We | ||
9 | * use the following macros to deal with this. | ||
10 | */ | ||
11 | |||
12 | #ifdef __ASSEMBLY__ | ||
13 | #define _AC(X,Y) X | ||
14 | #else | ||
15 | #define _AC(X,Y) (X##Y) | ||
16 | #endif | ||
17 | |||
18 | |||
19 | #endif /* !(_SPARC64_CONST_H) */ | ||
diff --git a/include/asm-sparc64/lsu.h b/include/asm-sparc64/lsu.h index e5329c7f5833..79f109840c39 100644 --- a/include/asm-sparc64/lsu.h +++ b/include/asm-sparc64/lsu.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #ifndef _SPARC64_LSU_H | 2 | #ifndef _SPARC64_LSU_H |
3 | #define _SPARC64_LSU_H | 3 | #define _SPARC64_LSU_H |
4 | 4 | ||
5 | #include <asm/const.h> | 5 | #include <linux/const.h> |
6 | 6 | ||
7 | /* LSU Control Register */ | 7 | /* LSU Control Register */ |
8 | #define LSU_CONTROL_PM _AC(0x000001fe00000000,UL) /* Phys-watchpoint byte mask*/ | 8 | #define LSU_CONTROL_PM _AC(0x000001fe00000000,UL) /* Phys-watchpoint byte mask*/ |
diff --git a/include/asm-sparc64/mmu.h b/include/asm-sparc64/mmu.h index 70af4b6ce136..8abc58f0f9d7 100644 --- a/include/asm-sparc64/mmu.h +++ b/include/asm-sparc64/mmu.h | |||
@@ -1,8 +1,8 @@ | |||
1 | #ifndef __MMU_H | 1 | #ifndef __MMU_H |
2 | #define __MMU_H | 2 | #define __MMU_H |
3 | 3 | ||
4 | #include <linux/const.h> | ||
4 | #include <asm/page.h> | 5 | #include <asm/page.h> |
5 | #include <asm/const.h> | ||
6 | #include <asm/hypervisor.h> | 6 | #include <asm/hypervisor.h> |
7 | 7 | ||
8 | #define CTX_NR_BITS 13 | 8 | #define CTX_NR_BITS 13 |
diff --git a/include/asm-sparc64/page.h b/include/asm-sparc64/page.h index ff736eafa64d..7af1077451ff 100644 --- a/include/asm-sparc64/page.h +++ b/include/asm-sparc64/page.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | #ifdef __KERNEL__ | 6 | #ifdef __KERNEL__ |
7 | 7 | ||
8 | #include <asm/const.h> | 8 | #include <linux/const.h> |
9 | 9 | ||
10 | #if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) | 10 | #if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) |
11 | #define PAGE_SHIFT 13 | 11 | #define PAGE_SHIFT 13 |
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h index 46705ef47d27..9e80ad43b29c 100644 --- a/include/asm-sparc64/pgtable.h +++ b/include/asm-sparc64/pgtable.h | |||
@@ -15,13 +15,13 @@ | |||
15 | #include <asm-generic/pgtable-nopud.h> | 15 | #include <asm-generic/pgtable-nopud.h> |
16 | 16 | ||
17 | #include <linux/compiler.h> | 17 | #include <linux/compiler.h> |
18 | #include <linux/const.h> | ||
18 | #include <asm/types.h> | 19 | #include <asm/types.h> |
19 | #include <asm/spitfire.h> | 20 | #include <asm/spitfire.h> |
20 | #include <asm/asi.h> | 21 | #include <asm/asi.h> |
21 | #include <asm/system.h> | 22 | #include <asm/system.h> |
22 | #include <asm/page.h> | 23 | #include <asm/page.h> |
23 | #include <asm/processor.h> | 24 | #include <asm/processor.h> |
24 | #include <asm/const.h> | ||
25 | 25 | ||
26 | /* The kernel image occupies 0x4000000 to 0x1000000 (4MB --> 32MB). | 26 | /* The kernel image occupies 0x4000000 to 0x1000000 (4MB --> 32MB). |
27 | * The page copy blockops can use 0x2000000 to 0x4000000. | 27 | * The page copy blockops can use 0x2000000 to 0x4000000. |
diff --git a/include/asm-sparc64/pstate.h b/include/asm-sparc64/pstate.h index 49a7924a89ab..f3c45484c636 100644 --- a/include/asm-sparc64/pstate.h +++ b/include/asm-sparc64/pstate.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #ifndef _SPARC64_PSTATE_H | 2 | #ifndef _SPARC64_PSTATE_H |
3 | #define _SPARC64_PSTATE_H | 3 | #define _SPARC64_PSTATE_H |
4 | 4 | ||
5 | #include <asm/const.h> | 5 | #include <linux/const.h> |
6 | 6 | ||
7 | /* The V9 PSTATE Register (with SpitFire extensions). | 7 | /* The V9 PSTATE Register (with SpitFire extensions). |
8 | * | 8 | * |
diff --git a/include/asm-sparc64/sfafsr.h b/include/asm-sparc64/sfafsr.h index 2f792c20b53c..e96137b04a4f 100644 --- a/include/asm-sparc64/sfafsr.h +++ b/include/asm-sparc64/sfafsr.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _SPARC64_SFAFSR_H | 1 | #ifndef _SPARC64_SFAFSR_H |
2 | #define _SPARC64_SFAFSR_H | 2 | #define _SPARC64_SFAFSR_H |
3 | 3 | ||
4 | #include <asm/const.h> | 4 | #include <linux/const.h> |
5 | 5 | ||
6 | /* Spitfire Asynchronous Fault Status register, ASI=0x4C VA<63:0>=0x0 */ | 6 | /* Spitfire Asynchronous Fault Status register, ASI=0x4C VA<63:0>=0x0 */ |
7 | 7 | ||
diff --git a/include/asm-x86_64/Kbuild b/include/asm-x86_64/Kbuild index 89ad1fc27c8b..75a2deffca68 100644 --- a/include/asm-x86_64/Kbuild +++ b/include/asm-x86_64/Kbuild | |||
@@ -19,4 +19,3 @@ unifdef-y += mce.h | |||
19 | unifdef-y += msr.h | 19 | unifdef-y += msr.h |
20 | unifdef-y += mtrr.h | 20 | unifdef-y += mtrr.h |
21 | unifdef-y += vsyscall.h | 21 | unifdef-y += vsyscall.h |
22 | unifdef-y += const.h | ||
diff --git a/include/asm-x86_64/page.h b/include/asm-x86_64/page.h index 4d04e2479569..d7b101bb4a5f 100644 --- a/include/asm-x86_64/page.h +++ b/include/asm-x86_64/page.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _X86_64_PAGE_H | 1 | #ifndef _X86_64_PAGE_H |
2 | #define _X86_64_PAGE_H | 2 | #define _X86_64_PAGE_H |
3 | 3 | ||
4 | #include <asm/const.h> | 4 | #include <linux/const.h> |
5 | 5 | ||
6 | /* PAGE_SHIFT determines the page size */ | 6 | /* PAGE_SHIFT determines the page size */ |
7 | #define PAGE_SHIFT 12 | 7 | #define PAGE_SHIFT 12 |
diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h index b21083891ce8..4e86aca57aea 100644 --- a/include/asm-x86_64/pgtable.h +++ b/include/asm-x86_64/pgtable.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _X86_64_PGTABLE_H | 1 | #ifndef _X86_64_PGTABLE_H |
2 | #define _X86_64_PGTABLE_H | 2 | #define _X86_64_PGTABLE_H |
3 | 3 | ||
4 | #include <asm/const.h> | 4 | #include <linux/const.h> |
5 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
6 | 6 | ||
7 | /* | 7 | /* |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 2c2b6fc91e30..d61983db4149 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -45,6 +45,7 @@ header-y += coda_psdev.h | |||
45 | header-y += coff.h | 45 | header-y += coff.h |
46 | header-y += comstats.h | 46 | header-y += comstats.h |
47 | header-y += consolemap.h | 47 | header-y += consolemap.h |
48 | header-y += const.h | ||
48 | header-y += cycx_cfm.h | 49 | header-y += cycx_cfm.h |
49 | header-y += dlm_device.h | 50 | header-y += dlm_device.h |
50 | header-y += dm-ioctl.h | 51 | header-y += dm-ioctl.h |
diff --git a/include/asm-x86_64/const.h b/include/linux/const.h index 54fb08f3db9b..07b300bfe34b 100644 --- a/include/asm-x86_64/const.h +++ b/include/linux/const.h | |||
@@ -1,11 +1,11 @@ | |||
1 | /* const.h: Macros for dealing with constants. */ | 1 | /* const.h: Macros for dealing with constants. */ |
2 | 2 | ||
3 | #ifndef _X86_64_CONST_H | 3 | #ifndef _LINUX_CONST_H |
4 | #define _X86_64_CONST_H | 4 | #define _LINUX_CONST_H |
5 | 5 | ||
6 | /* Some constant macros are used in both assembler and | 6 | /* Some constant macros are used in both assembler and |
7 | * C code. Therefore we cannot annotate them always with | 7 | * C code. Therefore we cannot annotate them always with |
8 | * 'UL' and other type specificers unilaterally. We | 8 | * 'UL' and other type specifiers unilaterally. We |
9 | * use the following macros to deal with this. | 9 | * use the following macros to deal with this. |
10 | */ | 10 | */ |
11 | 11 | ||
@@ -16,5 +16,4 @@ | |||
16 | #define _AC(X,Y) __AC(X,Y) | 16 | #define _AC(X,Y) __AC(X,Y) |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | 19 | #endif /* !(_LINUX_CONST_H) */ | |
20 | #endif /* !(_X86_64_CONST_H) */ | ||