x86/mm: Apply the section attribute to the variable, not its type
authorJan-Simon Möller <dl9pf@gmx.de>
Fri, 5 Sep 2014 23:16:45 +0000 (16:16 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 9 Sep 2014 05:13:39 +0000 (07:13 +0200)
commitcc99535eb4049c730cac421d403d079593cb31ae
tree8bf45c2de9340c196be55662d43a22ced3fc86e0
parent8a5a5d1530d55e367ef29c80946d0274717617bb
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 <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1409959005-11479-1-git-send-email-behanw@converseincode.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/mmap.c