Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] 2925/3: earlyparam - postfix section with .init for `make buildcheck`

Patch from Ben Dooks

The `make buildcheck` is erroneously reporting that the earlyparam
list is referencing items in the .init section as it is not itself
postfixed with .init
Also, as per rmk's suggestion, rename the __early_param to
.early_param to bring it into line with everything else

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Ben Dooks and committed by
Russell King
bfe6815e 58dd48a6

+2 -2
+1 -1
arch/arm/kernel/vmlinux.lds.S
··· 36 36 *(.init.setup) 37 37 __setup_end = .; 38 38 __early_begin = .; 39 - *(__early_param) 39 + *(.early_param.init) 40 40 __early_end = .; 41 41 __initcall_start = .; 42 42 *(.initcall1.init)
+1 -1
include/asm-arm/setup.h
··· 213 213 214 214 #define __early_param(name,fn) \ 215 215 static struct early_params __early_##fn __attribute_used__ \ 216 - __attribute__((__section__("__early_param"))) = { name, fn } 216 + __attribute__((__section__(".early_param.init"))) = { name, fn } 217 217 218 218 #endif