uml: arch/um/include/init.h needs a definition of __used
authorJeff Dike <jdike@addtoit.com>
Tue, 5 Feb 2008 06:30:34 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:24 +0000 (09:44 -0800)
commit99c9f502cb3498b02b1e5df60c9ea0ee2e535373
tree3f75e2cb7477b99f0568cd9f9aa40cd60af1dec7
parent747646a4d9d9ddfc7952f8c6d25ea1f323e689a0
uml: arch/um/include/init.h needs a definition of __used

init.h started breaking now for some reason.  It turns out that there wasn't a
definition of __used.  Fixed this by copying the relevant stuff from
compiler.h in the userspace case, and including compiler.h in the kernel case.

[xiyou.wangcong@gmail.com: added definition of __section]
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/init.h