diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-alpha/io_trivial.h | 12 | ||||
-rw-r--r-- | include/asm-generic/tlb.h | 4 | ||||
-rw-r--r-- | include/linux/Kbuild | 1 | ||||
-rw-r--r-- | include/linux/apm_bios.h | 6 | ||||
-rw-r--r-- | include/linux/hugetlb.h | 2 |
5 files changed, 16 insertions, 9 deletions
diff --git a/include/asm-alpha/io_trivial.h b/include/asm-alpha/io_trivial.h index b10d1aa4cdd1..1c77f10b4b36 100644 --- a/include/asm-alpha/io_trivial.h +++ b/include/asm-alpha/io_trivial.h | |||
@@ -72,25 +72,29 @@ IO_CONCAT(__IO_PREFIX,writew)(u16 b, volatile void __iomem *a) | |||
72 | __EXTERN_INLINE u8 | 72 | __EXTERN_INLINE u8 |
73 | IO_CONCAT(__IO_PREFIX,readb)(const volatile void __iomem *a) | 73 | IO_CONCAT(__IO_PREFIX,readb)(const volatile void __iomem *a) |
74 | { | 74 | { |
75 | return IO_CONCAT(__IO_PREFIX,ioread8)((void __iomem *)a); | 75 | void __iomem *addr = (void __iomem *)a; |
76 | return IO_CONCAT(__IO_PREFIX,ioread8)(addr); | ||
76 | } | 77 | } |
77 | 78 | ||
78 | __EXTERN_INLINE u16 | 79 | __EXTERN_INLINE u16 |
79 | IO_CONCAT(__IO_PREFIX,readw)(const volatile void __iomem *a) | 80 | IO_CONCAT(__IO_PREFIX,readw)(const volatile void __iomem *a) |
80 | { | 81 | { |
81 | return IO_CONCAT(__IO_PREFIX,ioread16)((void __iomem *)a); | 82 | void __iomem *addr = (void __iomem *)a; |
83 | return IO_CONCAT(__IO_PREFIX,ioread16)(addr); | ||
82 | } | 84 | } |
83 | 85 | ||
84 | __EXTERN_INLINE void | 86 | __EXTERN_INLINE void |
85 | IO_CONCAT(__IO_PREFIX,writeb)(u8 b, volatile void __iomem *a) | 87 | IO_CONCAT(__IO_PREFIX,writeb)(u8 b, volatile void __iomem *a) |
86 | { | 88 | { |
87 | IO_CONCAT(__IO_PREFIX,iowrite8)(b, (void __iomem *)a); | 89 | void __iomem *addr = (void __iomem *)a; |
90 | IO_CONCAT(__IO_PREFIX,iowrite8)(b, addr); | ||
88 | } | 91 | } |
89 | 92 | ||
90 | __EXTERN_INLINE void | 93 | __EXTERN_INLINE void |
91 | IO_CONCAT(__IO_PREFIX,writew)(u16 b, volatile void __iomem *a) | 94 | IO_CONCAT(__IO_PREFIX,writew)(u16 b, volatile void __iomem *a) |
92 | { | 95 | { |
93 | IO_CONCAT(__IO_PREFIX,iowrite16)(b, (void __iomem *)a); | 96 | void __iomem *addr = (void __iomem *)a; |
97 | IO_CONCAT(__IO_PREFIX,iowrite16)(b, addr); | ||
94 | } | 98 | } |
95 | #endif | 99 | #endif |
96 | 100 | ||
diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index f490e43a90b9..799307eea40f 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define _ASM_GENERIC__TLB_H | 14 | #define _ASM_GENERIC__TLB_H |
15 | 15 | ||
16 | #include <linux/swap.h> | 16 | #include <linux/swap.h> |
17 | #include <linux/quicklist.h> | ||
17 | #include <asm/pgalloc.h> | 18 | #include <asm/pgalloc.h> |
18 | #include <asm/tlbflush.h> | 19 | #include <asm/tlbflush.h> |
19 | 20 | ||
@@ -85,6 +86,9 @@ tlb_flush_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end) | |||
85 | static inline void | 86 | static inline void |
86 | tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end) | 87 | tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end) |
87 | { | 88 | { |
89 | #ifdef CONFIG_QUICKLIST | ||
90 | tlb->need_flush += &__get_cpu_var(quicklist)[0].nr_pages != 0; | ||
91 | #endif | ||
88 | tlb_flush_mmu(tlb, start, end); | 92 | tlb_flush_mmu(tlb, start, end); |
89 | 93 | ||
90 | /* keep the page table cache within bounds */ | 94 | /* keep the page table cache within bounds */ |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 37bfa19d8064..9abf5a806c15 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -145,7 +145,6 @@ header-y += sound.h | |||
145 | header-y += taskstats.h | 145 | header-y += taskstats.h |
146 | header-y += telephony.h | 146 | header-y += telephony.h |
147 | header-y += termios.h | 147 | header-y += termios.h |
148 | header-y += ticable.h | ||
149 | header-y += times.h | 148 | header-y += times.h |
150 | header-y += tiocl.h | 149 | header-y += tiocl.h |
151 | header-y += tipc.h | 150 | header-y += tipc.h |
diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h index 9754baa14921..01a6244c9bc9 100644 --- a/include/linux/apm_bios.h +++ b/include/linux/apm_bios.h | |||
@@ -18,6 +18,9 @@ | |||
18 | 18 | ||
19 | #include <linux/types.h> | 19 | #include <linux/types.h> |
20 | 20 | ||
21 | typedef unsigned short apm_event_t; | ||
22 | typedef unsigned short apm_eventinfo_t; | ||
23 | |||
21 | struct apm_bios_info { | 24 | struct apm_bios_info { |
22 | __u16 version; | 25 | __u16 version; |
23 | __u16 cseg; | 26 | __u16 cseg; |
@@ -32,9 +35,6 @@ struct apm_bios_info { | |||
32 | 35 | ||
33 | #ifdef __KERNEL__ | 36 | #ifdef __KERNEL__ |
34 | 37 | ||
35 | typedef unsigned short apm_event_t; | ||
36 | typedef unsigned short apm_eventinfo_t; | ||
37 | |||
38 | #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) | 38 | #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) |
39 | #define APM_CS_16 (APM_CS + 8) | 39 | #define APM_CS_16 (APM_CS + 8) |
40 | #define APM_DS (APM_CS_16 + 8) | 40 | #define APM_DS (APM_CS_16 + 8) |
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 24968790bc3e..30d606afcafe 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -33,7 +33,7 @@ void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); | |||
33 | 33 | ||
34 | extern unsigned long max_huge_pages; | 34 | extern unsigned long max_huge_pages; |
35 | extern unsigned long hugepages_treat_as_movable; | 35 | extern unsigned long hugepages_treat_as_movable; |
36 | extern int hugetlb_dynamic_pool; | 36 | extern unsigned long nr_overcommit_huge_pages; |
37 | extern const unsigned long hugetlb_zero, hugetlb_infinity; | 37 | extern const unsigned long hugetlb_zero, hugetlb_infinity; |
38 | extern int sysctl_hugetlb_shm_group; | 38 | extern int sysctl_hugetlb_shm_group; |
39 | 39 | ||