kasan, module: move MODULE_ALIGN macro into <linux/moduleloader.h>
authorAndrey Ryabinin <a.ryabinin@samsung.com>
Thu, 12 Mar 2015 23:26:14 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Mar 2015 01:46:08 +0000 (18:46 -0700)
commitd3733e5c98e952d419e77fa721912f09d15a2806
treef5ada9a2bbdac2aedc64bd9d2dc112b7caa0e91d
parenta5af5aa8b67dfdba36c853b70564fd2dfe73d478
kasan, module: move MODULE_ALIGN macro into <linux/moduleloader.h>

include/linux/moduleloader.h is more suitable place for this macro.
Also change alignment to PAGE_SIZE for CONFIG_KASAN=n as such
alignment already assumed in several places.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kasan.h
include/linux/moduleloader.h