aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Simon Möller <[email protected]>2014-09-05 16:16:45 -0700
committerIngo Molnar <[email protected]>2014-09-09 07:13:39 +0200
commitcc99535eb4049c730cac421d403d079593cb31ae (patch)
tree8bf45c2de9340c196be55662d43a22ced3fc86e0
parent8a5a5d1530d55e367ef29c80946d0274717617bb (diff)
x86/mm: Apply the section attribute to the variable, not its type
This fixes a compilation error in clang in that a linker section attribute can't be added to a type: arch/x86/mm/mmap.c:34:8: error: '__section__' attribute only applies to functions and global variables struct __read_mostly ... By moving the section attribute to the variable declaration, the desired effect is achieved. Signed-off-by: Jan-Simon Möller <[email protected]> Signed-off-by: Behan Webster <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c
index 25e7e1372bb2..919b91205cd4 100644
--- a/arch/x86/mm/mmap.c
+++ b/arch/x86/mm/mmap.c
@@ -31,7 +31,7 @@
#include <linux/sched.h>
#include <asm/elf.h>
-struct __read_mostly va_alignment va_align = {
+struct va_alignment __read_mostly va_align = {
.flags = -1,
};