diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/mach-summit/mach_apic.h | 4 | ||||
-rw-r--r-- | include/asm-parisc/semaphore.h | 6 | ||||
-rw-r--r-- | include/linux/irqflags.h | 37 | ||||
-rw-r--r-- | include/linux/kernel.h | 4 | ||||
-rw-r--r-- | include/linux/netdevice.h | 6 | ||||
-rw-r--r-- | include/linux/spinlock.h | 69 | ||||
-rw-r--r-- | include/net/sock.h | 15 | ||||
-rw-r--r-- | include/scsi/libsas.h | 1 | ||||
-rw-r--r-- | include/sound/version.h | 2 |
9 files changed, 47 insertions, 97 deletions
diff --git a/include/asm-i386/mach-summit/mach_apic.h b/include/asm-i386/mach-summit/mach_apic.h index ef0671e5d5..43e5bd8f4a 100644 --- a/include/asm-i386/mach-summit/mach_apic.h +++ b/include/asm-i386/mach-summit/mach_apic.h | |||
@@ -88,7 +88,11 @@ static inline void clustered_apic_check(void) | |||
88 | 88 | ||
89 | static inline int apicid_to_node(int logical_apicid) | 89 | static inline int apicid_to_node(int logical_apicid) |
90 | { | 90 | { |
91 | #ifdef CONFIG_SMP | ||
91 | return apicid_2_node[hard_smp_processor_id()]; | 92 | return apicid_2_node[hard_smp_processor_id()]; |
93 | #else | ||
94 | return 0; | ||
95 | #endif | ||
92 | } | 96 | } |
93 | 97 | ||
94 | /* Mapping from cpu number to logical apicid */ | 98 | /* Mapping from cpu number to logical apicid */ |
diff --git a/include/asm-parisc/semaphore.h b/include/asm-parisc/semaphore.h index c9ee41cd07..d45827a21f 100644 --- a/include/asm-parisc/semaphore.h +++ b/include/asm-parisc/semaphore.h | |||
@@ -115,7 +115,8 @@ extern __inline__ int down_interruptible(struct semaphore * sem) | |||
115 | */ | 115 | */ |
116 | extern __inline__ int down_trylock(struct semaphore * sem) | 116 | extern __inline__ int down_trylock(struct semaphore * sem) |
117 | { | 117 | { |
118 | int flags, count; | 118 | unsigned long flags; |
119 | int count; | ||
119 | 120 | ||
120 | spin_lock_irqsave(&sem->sentry, flags); | 121 | spin_lock_irqsave(&sem->sentry, flags); |
121 | count = sem->count - 1; | 122 | count = sem->count - 1; |
@@ -131,7 +132,8 @@ extern __inline__ int down_trylock(struct semaphore * sem) | |||
131 | */ | 132 | */ |
132 | extern __inline__ void up(struct semaphore * sem) | 133 | extern __inline__ void up(struct semaphore * sem) |
133 | { | 134 | { |
134 | int flags; | 135 | unsigned long flags; |
136 | |||
135 | spin_lock_irqsave(&sem->sentry, flags); | 137 | spin_lock_irqsave(&sem->sentry, flags); |
136 | if (sem->count < 0) { | 138 | if (sem->count < 0) { |
137 | __up(sem); | 139 | __up(sem); |
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h index 4fe740bf4e..412e025bc5 100644 --- a/include/linux/irqflags.h +++ b/include/linux/irqflags.h | |||
@@ -11,12 +11,6 @@ | |||
11 | #ifndef _LINUX_TRACE_IRQFLAGS_H | 11 | #ifndef _LINUX_TRACE_IRQFLAGS_H |
12 | #define _LINUX_TRACE_IRQFLAGS_H | 12 | #define _LINUX_TRACE_IRQFLAGS_H |
13 | 13 | ||
14 | #define BUILD_CHECK_IRQ_FLAGS(flags) \ | ||
15 | do { \ | ||
16 | BUILD_BUG_ON(sizeof(flags) != sizeof(unsigned long)); \ | ||
17 | typecheck(unsigned long, flags); \ | ||
18 | } while (0) | ||
19 | |||
20 | #ifdef CONFIG_TRACE_IRQFLAGS | 14 | #ifdef CONFIG_TRACE_IRQFLAGS |
21 | extern void trace_hardirqs_on(void); | 15 | extern void trace_hardirqs_on(void); |
22 | extern void trace_hardirqs_off(void); | 16 | extern void trace_hardirqs_off(void); |
@@ -56,15 +50,10 @@ | |||
56 | #define local_irq_disable() \ | 50 | #define local_irq_disable() \ |
57 | do { raw_local_irq_disable(); trace_hardirqs_off(); } while (0) | 51 | do { raw_local_irq_disable(); trace_hardirqs_off(); } while (0) |
58 | #define local_irq_save(flags) \ | 52 | #define local_irq_save(flags) \ |
59 | do { \ | 53 | do { raw_local_irq_save(flags); trace_hardirqs_off(); } while (0) |
60 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
61 | raw_local_irq_save(flags); \ | ||
62 | trace_hardirqs_off(); \ | ||
63 | } while (0) | ||
64 | 54 | ||
65 | #define local_irq_restore(flags) \ | 55 | #define local_irq_restore(flags) \ |
66 | do { \ | 56 | do { \ |
67 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
68 | if (raw_irqs_disabled_flags(flags)) { \ | 57 | if (raw_irqs_disabled_flags(flags)) { \ |
69 | raw_local_irq_restore(flags); \ | 58 | raw_local_irq_restore(flags); \ |
70 | trace_hardirqs_off(); \ | 59 | trace_hardirqs_off(); \ |
@@ -80,16 +69,8 @@ | |||
80 | */ | 69 | */ |
81 | # define raw_local_irq_disable() local_irq_disable() | 70 | # define raw_local_irq_disable() local_irq_disable() |
82 | # define raw_local_irq_enable() local_irq_enable() | 71 | # define raw_local_irq_enable() local_irq_enable() |
83 | # define raw_local_irq_save(flags) \ | 72 | # define raw_local_irq_save(flags) local_irq_save(flags) |
84 | do { \ | 73 | # define raw_local_irq_restore(flags) local_irq_restore(flags) |
85 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
86 | local_irq_save(flags); \ | ||
87 | } while (0) | ||
88 | # define raw_local_irq_restore(flags) \ | ||
89 | do { \ | ||
90 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
91 | local_irq_restore(flags); \ | ||
92 | } while (0) | ||
93 | #endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */ | 74 | #endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */ |
94 | 75 | ||
95 | #ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT | 76 | #ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT |
@@ -99,11 +80,7 @@ | |||
99 | raw_safe_halt(); \ | 80 | raw_safe_halt(); \ |
100 | } while (0) | 81 | } while (0) |
101 | 82 | ||
102 | #define local_save_flags(flags) \ | 83 | #define local_save_flags(flags) raw_local_save_flags(flags) |
103 | do { \ | ||
104 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
105 | raw_local_save_flags(flags); \ | ||
106 | } while (0) | ||
107 | 84 | ||
108 | #define irqs_disabled() \ | 85 | #define irqs_disabled() \ |
109 | ({ \ | 86 | ({ \ |
@@ -113,11 +90,7 @@ | |||
113 | raw_irqs_disabled_flags(flags); \ | 90 | raw_irqs_disabled_flags(flags); \ |
114 | }) | 91 | }) |
115 | 92 | ||
116 | #define irqs_disabled_flags(flags) \ | 93 | #define irqs_disabled_flags(flags) raw_irqs_disabled_flags(flags) |
117 | ({ \ | ||
118 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
119 | raw_irqs_disabled_flags(flags); \ | ||
120 | }) | ||
121 | #endif /* CONFIG_X86 */ | 94 | #endif /* CONFIG_X86 */ |
122 | 95 | ||
123 | #endif | 96 | #endif |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 24b611147a..b9b5e4ba16 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -30,8 +30,10 @@ extern const char linux_banner[]; | |||
30 | 30 | ||
31 | #define STACK_MAGIC 0xdeadbeef | 31 | #define STACK_MAGIC 0xdeadbeef |
32 | 32 | ||
33 | #define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) | ||
34 | #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) | ||
35 | |||
33 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) | 36 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
34 | #define ALIGN(x,a) (((x)+(a)-1UL)&~((a)-1UL)) | ||
35 | #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) | 37 | #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) |
36 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) | 38 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) |
37 | #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) | 39 | #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9264139bd8..83b8c4f1d6 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -93,8 +93,10 @@ struct netpoll_info; | |||
93 | #endif | 93 | #endif |
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | #if !defined(CONFIG_NET_IPIP) && \ | 96 | #if !defined(CONFIG_NET_IPIP) && !defined(CONFIG_NET_IPIP_MODULE) && \ |
97 | !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE) | 97 | !defined(CONFIG_NET_IPGRE) && !defined(CONFIG_NET_IPGRE_MODULE) && \ |
98 | !defined(CONFIG_IPV6_SIT) && !defined(CONFIG_IPV6_SIT_MODULE) && \ | ||
99 | !defined(CONFIG_IPV6_TUNNEL) && !defined(CONFIG_IPV6_TUNNEL_MODULE) | ||
98 | #define MAX_HEADER LL_MAX_HEADER | 100 | #define MAX_HEADER LL_MAX_HEADER |
99 | #else | 101 | #else |
100 | #define MAX_HEADER (LL_MAX_HEADER + 48) | 102 | #define MAX_HEADER (LL_MAX_HEADER + 48) |
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 57f670d78f..8451052ca6 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h | |||
@@ -52,7 +52,6 @@ | |||
52 | #include <linux/thread_info.h> | 52 | #include <linux/thread_info.h> |
53 | #include <linux/kernel.h> | 53 | #include <linux/kernel.h> |
54 | #include <linux/stringify.h> | 54 | #include <linux/stringify.h> |
55 | #include <linux/irqflags.h> | ||
56 | 55 | ||
57 | #include <asm/system.h> | 56 | #include <asm/system.h> |
58 | 57 | ||
@@ -184,52 +183,24 @@ do { \ | |||
184 | #define read_lock(lock) _read_lock(lock) | 183 | #define read_lock(lock) _read_lock(lock) |
185 | 184 | ||
186 | #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK) | 185 | #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK) |
187 | #define spin_lock_irqsave(lock, flags) \ | 186 | |
188 | do { \ | 187 | #define spin_lock_irqsave(lock, flags) flags = _spin_lock_irqsave(lock) |
189 | BUILD_CHECK_IRQ_FLAGS(flags); \ | 188 | #define read_lock_irqsave(lock, flags) flags = _read_lock_irqsave(lock) |
190 | flags = _spin_lock_irqsave(lock); \ | 189 | #define write_lock_irqsave(lock, flags) flags = _write_lock_irqsave(lock) |
191 | } while (0) | ||
192 | #define read_lock_irqsave(lock, flags) \ | ||
193 | do { \ | ||
194 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
195 | flags = _read_lock_irqsave(lock); \ | ||
196 | } while (0) | ||
197 | #define write_lock_irqsave(lock, flags) \ | ||
198 | do { \ | ||
199 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
200 | flags = _write_lock_irqsave(lock); \ | ||
201 | } while (0) | ||
202 | 190 | ||
203 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 191 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
204 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ | 192 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ |
205 | do { \ | 193 | flags = _spin_lock_irqsave_nested(lock, subclass) |
206 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
207 | flags = _spin_lock_irqsave_nested(lock, subclass); \ | ||
208 | } while (0) | ||
209 | #else | 194 | #else |
210 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ | 195 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ |
211 | do { \ | 196 | flags = _spin_lock_irqsave(lock) |
212 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
213 | flags = _spin_lock_irqsave(lock); \ | ||
214 | } while (0) | ||
215 | #endif | 197 | #endif |
216 | 198 | ||
217 | #else | 199 | #else |
218 | #define spin_lock_irqsave(lock, flags) \ | 200 | |
219 | do { \ | 201 | #define spin_lock_irqsave(lock, flags) _spin_lock_irqsave(lock, flags) |
220 | BUILD_CHECK_IRQ_FLAGS(flags); \ | 202 | #define read_lock_irqsave(lock, flags) _read_lock_irqsave(lock, flags) |
221 | _spin_lock_irqsave(lock, flags); \ | 203 | #define write_lock_irqsave(lock, flags) _write_lock_irqsave(lock, flags) |
222 | } while (0) | ||
223 | #define read_lock_irqsave(lock, flags) \ | ||
224 | do { \ | ||
225 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
226 | _read_lock_irqsave(lock, flags); \ | ||
227 | } while (0) | ||
228 | #define write_lock_irqsave(lock, flags) \ | ||
229 | do { \ | ||
230 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
231 | _write_lock_irqsave(lock, flags); \ | ||
232 | } while (0) | ||
233 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ | 204 | #define spin_lock_irqsave_nested(lock, flags, subclass) \ |
234 | spin_lock_irqsave(lock, flags) | 205 | spin_lock_irqsave(lock, flags) |
235 | 206 | ||
@@ -268,24 +239,15 @@ do { \ | |||
268 | #endif | 239 | #endif |
269 | 240 | ||
270 | #define spin_unlock_irqrestore(lock, flags) \ | 241 | #define spin_unlock_irqrestore(lock, flags) \ |
271 | do { \ | 242 | _spin_unlock_irqrestore(lock, flags) |
272 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
273 | _spin_unlock_irqrestore(lock, flags); \ | ||
274 | } while (0) | ||
275 | #define spin_unlock_bh(lock) _spin_unlock_bh(lock) | 243 | #define spin_unlock_bh(lock) _spin_unlock_bh(lock) |
276 | 244 | ||
277 | #define read_unlock_irqrestore(lock, flags) \ | 245 | #define read_unlock_irqrestore(lock, flags) \ |
278 | do { \ | 246 | _read_unlock_irqrestore(lock, flags) |
279 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
280 | _read_unlock_irqrestore(lock, flags); \ | ||
281 | } while (0) | ||
282 | #define read_unlock_bh(lock) _read_unlock_bh(lock) | 247 | #define read_unlock_bh(lock) _read_unlock_bh(lock) |
283 | 248 | ||
284 | #define write_unlock_irqrestore(lock, flags) \ | 249 | #define write_unlock_irqrestore(lock, flags) \ |
285 | do { \ | 250 | _write_unlock_irqrestore(lock, flags) |
286 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
287 | _write_unlock_irqrestore(lock, flags); \ | ||
288 | } while (0) | ||
289 | #define write_unlock_bh(lock) _write_unlock_bh(lock) | 251 | #define write_unlock_bh(lock) _write_unlock_bh(lock) |
290 | 252 | ||
291 | #define spin_trylock_bh(lock) __cond_lock(lock, _spin_trylock_bh(lock)) | 253 | #define spin_trylock_bh(lock) __cond_lock(lock, _spin_trylock_bh(lock)) |
@@ -299,7 +261,6 @@ do { \ | |||
299 | 261 | ||
300 | #define spin_trylock_irqsave(lock, flags) \ | 262 | #define spin_trylock_irqsave(lock, flags) \ |
301 | ({ \ | 263 | ({ \ |
302 | BUILD_CHECK_IRQ_FLAGS(flags); \ | ||
303 | local_irq_save(flags); \ | 264 | local_irq_save(flags); \ |
304 | spin_trylock(lock) ? \ | 265 | spin_trylock(lock) ? \ |
305 | 1 : ({ local_irq_restore(flags); 0; }); \ | 266 | 1 : ({ local_irq_restore(flags); 0; }); \ |
diff --git a/include/net/sock.h b/include/net/sock.h index ac286a3530..9cdbae2a53 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -883,18 +883,23 @@ static inline int sk_filter(struct sock *sk, struct sk_buff *skb) | |||
883 | } | 883 | } |
884 | 884 | ||
885 | /** | 885 | /** |
886 | * sk_filter_release: Release a socket filter | 886 | * sk_filter_rcu_free: Free a socket filter |
887 | * @rcu: rcu_head that contains the sk_filter info to remove | 887 | * @rcu: rcu_head that contains the sk_filter to free |
888 | * | ||
889 | * Remove a filter from a socket and release its resources. | ||
890 | */ | 888 | */ |
891 | |||
892 | static inline void sk_filter_rcu_free(struct rcu_head *rcu) | 889 | static inline void sk_filter_rcu_free(struct rcu_head *rcu) |
893 | { | 890 | { |
894 | struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); | 891 | struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); |
895 | kfree(fp); | 892 | kfree(fp); |
896 | } | 893 | } |
897 | 894 | ||
895 | /** | ||
896 | * sk_filter_release: Release a socket filter | ||
897 | * @sk: socket | ||
898 | * @fp: filter to remove | ||
899 | * | ||
900 | * Remove a filter from a socket and release its resources. | ||
901 | */ | ||
902 | |||
898 | static inline void sk_filter_release(struct sock *sk, struct sk_filter *fp) | 903 | static inline void sk_filter_release(struct sock *sk, struct sk_filter *fp) |
899 | { | 904 | { |
900 | unsigned int size = sk_filter_len(fp); | 905 | unsigned int size = sk_filter_len(fp); |
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 9582e84016..1d77b63c5e 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <scsi/scsi_device.h> | 35 | #include <scsi/scsi_device.h> |
36 | #include <scsi/scsi_cmnd.h> | 36 | #include <scsi/scsi_cmnd.h> |
37 | #include <scsi/scsi_transport_sas.h> | 37 | #include <scsi/scsi_transport_sas.h> |
38 | #include <asm/scatterlist.h> | ||
38 | 39 | ||
39 | struct block_device; | 40 | struct block_device; |
40 | 41 | ||
diff --git a/include/sound/version.h b/include/sound/version.h index 52fd6879b8..17137f3a3b 100644 --- a/include/sound/version.h +++ b/include/sound/version.h | |||
@@ -1,3 +1,3 @@ | |||
1 | /* include/version.h. Generated by alsa/ksync script. */ | 1 | /* include/version.h. Generated by alsa/ksync script. */ |
2 | #define CONFIG_SND_VERSION "1.0.13" | 2 | #define CONFIG_SND_VERSION "1.0.13" |
3 | #define CONFIG_SND_DATE " (Sun Oct 22 08:56:16 2006 UTC)" | 3 | #define CONFIG_SND_DATE " (Tue Nov 28 14:07:24 2006 UTC)" |