aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--arch/arm/include/asm/glue-cache.h22
-rw-r--r--arch/arm/kernel/unwind.c2
-rw-r--r--crypto/shash.c3
-rw-r--r--net/netfilter/xt_repldata.h22
5 files changed, 32 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 6d1e304943a3..c761fb1abfb6 100644
--- a/Makefile
+++ b/Makefile
@@ -671,7 +671,7 @@ endif
671 671
672ifdef CONFIG_DEBUG_INFO 672ifdef CONFIG_DEBUG_INFO
673KBUILD_CFLAGS += -g 673KBUILD_CFLAGS += -g
674KBUILD_AFLAGS += -Wa,--gdwarf-2 674KBUILD_AFLAGS += -Wa,-gdwarf-2
675endif 675endif
676 676
677ifdef CONFIG_DEBUG_INFO_REDUCED 677ifdef CONFIG_DEBUG_INFO_REDUCED
diff --git a/arch/arm/include/asm/glue-cache.h b/arch/arm/include/asm/glue-cache.h
index c81adc08b3fb..a3c24cd5b7c8 100644
--- a/arch/arm/include/asm/glue-cache.h
+++ b/arch/arm/include/asm/glue-cache.h
@@ -130,22 +130,22 @@
130#endif 130#endif
131 131
132#ifndef __ASSEMBLER__ 132#ifndef __ASSEMBLER__
133extern inline void nop_flush_icache_all(void) { } 133static inline void nop_flush_icache_all(void) { }
134extern inline void nop_flush_kern_cache_all(void) { } 134static inline void nop_flush_kern_cache_all(void) { }
135extern inline void nop_flush_kern_cache_louis(void) { } 135static inline void nop_flush_kern_cache_louis(void) { }
136extern inline void nop_flush_user_cache_all(void) { } 136static inline void nop_flush_user_cache_all(void) { }
137extern inline void nop_flush_user_cache_range(unsigned long a, 137static inline void nop_flush_user_cache_range(unsigned long a,
138 unsigned long b, unsigned int c) { } 138 unsigned long b, unsigned int c) { }
139 139
140extern inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { } 140static inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { }
141extern inline int nop_coherent_user_range(unsigned long a, 141static inline int nop_coherent_user_range(unsigned long a,
142 unsigned long b) { return 0; } 142 unsigned long b) { return 0; }
143extern inline void nop_flush_kern_dcache_area(void *a, size_t s) { } 143static inline void nop_flush_kern_dcache_area(void *a, size_t s) { }
144 144
145extern inline void nop_dma_flush_range(const void *a, const void *b) { } 145static inline void nop_dma_flush_range(const void *a, const void *b) { }
146 146
147extern inline void nop_dma_map_area(const void *s, size_t l, int f) { } 147static inline void nop_dma_map_area(const void *s, size_t l, int f) { }
148extern inline void nop_dma_unmap_area(const void *s, size_t l, int f) { } 148static inline void nop_dma_unmap_area(const void *s, size_t l, int f) { }
149#endif 149#endif
150 150
151#ifndef MULTI_CACHE 151#ifndef MULTI_CACHE
diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c
index cb791ac6a003..e67682f02cb2 100644
--- a/arch/arm/kernel/unwind.c
+++ b/arch/arm/kernel/unwind.c
@@ -31,7 +31,7 @@
31#warning Your compiler does not have EABI support. 31#warning Your compiler does not have EABI support.
32#warning ARM unwind is known to compile only with EABI compilers. 32#warning ARM unwind is known to compile only with EABI compilers.
33#warning Change compiler or disable ARM_UNWIND option. 33#warning Change compiler or disable ARM_UNWIND option.
34#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) 34#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) && !defined(__clang__)
35#warning Your compiler is too buggy; it is known to not compile ARM unwind support. 35#warning Your compiler is too buggy; it is known to not compile ARM unwind support.
36#warning Change compiler or disable ARM_UNWIND option. 36#warning Change compiler or disable ARM_UNWIND option.
37#endif 37#endif
diff --git a/crypto/shash.c b/crypto/shash.c
index 929058a68561..47c713954bf3 100644
--- a/crypto/shash.c
+++ b/crypto/shash.c
@@ -67,7 +67,8 @@ EXPORT_SYMBOL_GPL(crypto_shash_setkey);
67static inline unsigned int shash_align_buffer_size(unsigned len, 67static inline unsigned int shash_align_buffer_size(unsigned len,
68 unsigned long mask) 68 unsigned long mask)
69{ 69{
70 return len + (mask & ~(__alignof__(u8 __attribute__ ((aligned))) - 1)); 70 typedef u8 __attribute__ ((aligned)) u8_aligned;
71 return len + (mask & ~(__alignof__(u8_aligned) - 1));
71} 72}
72 73
73static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, 74static int shash_update_unaligned(struct shash_desc *desc, const u8 *data,
diff --git a/net/netfilter/xt_repldata.h b/net/netfilter/xt_repldata.h
index 6efe4e5a81c6..8fd324116e6f 100644
--- a/net/netfilter/xt_repldata.h
+++ b/net/netfilter/xt_repldata.h
@@ -5,23 +5,35 @@
5 * they serve as the hanging-off data accessed through repl.data[]. 5 * they serve as the hanging-off data accessed through repl.data[].
6 */ 6 */
7 7
8/* tbl has the following structure equivalent, but is C99 compliant:
9 * struct {
10 * struct type##_replace repl;
11 * struct type##_standard entries[nhooks];
12 * struct type##_error term;
13 * } *tbl;
14 */
15
8#define xt_alloc_initial_table(type, typ2) ({ \ 16#define xt_alloc_initial_table(type, typ2) ({ \
9 unsigned int hook_mask = info->valid_hooks; \ 17 unsigned int hook_mask = info->valid_hooks; \
10 unsigned int nhooks = hweight32(hook_mask); \ 18 unsigned int nhooks = hweight32(hook_mask); \
11 unsigned int bytes = 0, hooknum = 0, i = 0; \ 19 unsigned int bytes = 0, hooknum = 0, i = 0; \
12 struct { \ 20 struct { \
13 struct type##_replace repl; \ 21 struct type##_replace repl; \
14 struct type##_standard entries[nhooks]; \ 22 struct type##_standard entries[]; \
15 struct type##_error term; \ 23 } *tbl; \
16 } *tbl = kzalloc(sizeof(*tbl), GFP_KERNEL); \ 24 struct type##_error *term; \
25 size_t term_offset = (offsetof(typeof(*tbl), entries[nhooks]) + \
26 __alignof__(*term) - 1) & ~(__alignof__(*term) - 1); \
27 tbl = kzalloc(term_offset + sizeof(*term), GFP_KERNEL); \
17 if (tbl == NULL) \ 28 if (tbl == NULL) \
18 return NULL; \ 29 return NULL; \
30 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \
19 strncpy(tbl->repl.name, info->name, sizeof(tbl->repl.name)); \ 31 strncpy(tbl->repl.name, info->name, sizeof(tbl->repl.name)); \
20 tbl->term = (struct type##_error)typ2##_ERROR_INIT; \ 32 *term = (struct type##_error)typ2##_ERROR_INIT; \
21 tbl->repl.valid_hooks = hook_mask; \ 33 tbl->repl.valid_hooks = hook_mask; \
22 tbl->repl.num_entries = nhooks + 1; \ 34 tbl->repl.num_entries = nhooks + 1; \
23 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \ 35 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
24 sizeof(struct type##_error); \ 36 sizeof(struct type##_error); \
25 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \ 37 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \
26 if (!(hook_mask & 1)) \ 38 if (!(hook_mask & 1)) \
27 continue; \ 39 continue; \