]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[ARM] 2925/3: earlyparam - postfix section with .init for `make buildcheck`
authorBen Dooks <ben-linux@fluff.org>
Tue, 20 Sep 2005 15:25:12 +0000 (16:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Sep 2005 15:25:12 +0000 (16:25 +0100)
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>
arch/arm/kernel/vmlinux.lds.S
include/asm-arm/setup.h

index 350b53b41e5b3e2dccdc2710a34b2a6b224f12d7..47423aaf9d77388aa06990650f772a6d8471fdda 100644 (file)
@@ -36,7 +36,7 @@ SECTIONS
                        *(.init.setup)
                __setup_end = .;
                __early_begin = .;
-                       *(__early_param)
+                       *(.early_param.init)
                __early_end = .;
                __initcall_start = .;
                        *(.initcall1.init)
index a4b3ebf9bdd134654f4353f76e7a14c1c5308156..ea3ed24652333e8dbcc3020074a626050895ed84 100644 (file)
@@ -213,6 +213,6 @@ struct early_params {
 
 #define __early_param(name,fn)                                 \
 static struct early_params __early_##fn __attribute_used__     \
-__attribute__((__section__("__early_param"))) = { name, fn }
+__attribute__((__section__(".early_param.init"))) = { name, fn }
 
 #endif