aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2014-09-24 12:30:12 +0000
committerIngo Molnar <[email protected]>2014-09-24 13:17:47 +0000
commiteeeda4cd06e828b331b15741a204ff9f5874d28d (patch)
tree7ba5e8dcf5dfaeda4a2ad0f8f479d7aa4a7642cf
parentx86/smpboot: Initialize secondary CPU only if master CPU will wait for it (diff)
downloadkernel-eeeda4cd06e828b331b15741a204ff9f5874d28d.tar.gz
kernel-eeeda4cd06e828b331b15741a204ff9f5874d28d.zip
x86/relocs: Make per_cpu_load_addr static
per_cpu_load_addr is only used for 64-bit relocations, but is declared in both configurations of relocs.c - with different types. This has undefined behaviour in general. GNU ld is documented to use the larger size in this case, but other tools may differ and some warn about this. References: https://bugs.debian.org/748577 Reported-by: Michael Tautschnig <[email protected]> Signed-off-by: Ben Hutchings <[email protected]> Cc: [email protected] Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/tools/relocs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
index bbb1d2259ecf..a5efb21d5228 100644
--- a/arch/x86/tools/relocs.c
+++ b/arch/x86/tools/relocs.c
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel,
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;
static void percpu_init(void)
{