diff options
author | Daniel Axtens <dja@axtens.net> | 2016-01-05 19:45:51 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-04-12 07:05:19 -0400 |
commit | 7f92bc5694557dee4cefa90df27feec16c7b62da (patch) | |
tree | 04036fff4ed67ced269d59c4e34ce35c98265d9f | |
parent | 635218c785bef355bc8266a1fdb28f38cdca365d (diff) |
powerpc: sparse: Include headers for __weak symbols
Sometimes when sparse warns about undefined symbols, it isn't
because they should have 'static' added, it's because they're
overriding __weak symbols defined elsewhere, and the header has
been missed.
Fix a few of them by adding appropriate headers.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom.c | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/time.c | 1 | ||||
-rw-r--r-- | arch/powerpc/mm/mmap.c | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b8500b4ac7fe..4695088e7dd2 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/random.h> | 38 | #include <linux/random.h> |
39 | #include <linux/hw_breakpoint.h> | 39 | #include <linux/hw_breakpoint.h> |
40 | #include <linux/uaccess.h> | 40 | #include <linux/uaccess.h> |
41 | #include <linux/elf-randomize.h> | ||
41 | 42 | ||
42 | #include <asm/pgtable.h> | 43 | #include <asm/pgtable.h> |
43 | #include <asm/io.h> | 44 | #include <asm/io.h> |
@@ -55,6 +56,7 @@ | |||
55 | #include <asm/firmware.h> | 56 | #include <asm/firmware.h> |
56 | #endif | 57 | #endif |
57 | #include <asm/code-patching.h> | 58 | #include <asm/code-patching.h> |
59 | #include <asm/exec.h> | ||
58 | #include <linux/kprobes.h> | 60 | #include <linux/kprobes.h> |
59 | #include <linux/kdebug.h> | 61 | #include <linux/kdebug.h> |
60 | 62 | ||
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 7030b035905d..1b082c729c29 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/of.h> | 34 | #include <linux/of.h> |
35 | #include <linux/of_fdt.h> | 35 | #include <linux/of_fdt.h> |
36 | #include <linux/libfdt.h> | 36 | #include <linux/libfdt.h> |
37 | #include <linux/cpu.h> | ||
37 | 38 | ||
38 | #include <asm/prom.h> | 39 | #include <asm/prom.h> |
39 | #include <asm/rtas.h> | 40 | #include <asm/rtas.h> |
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 81b0900a39ee..3ed9a5a21d77 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -55,6 +55,7 @@ | |||
55 | #include <linux/delay.h> | 55 | #include <linux/delay.h> |
56 | #include <linux/irq_work.h> | 56 | #include <linux/irq_work.h> |
57 | #include <linux/clk-provider.h> | 57 | #include <linux/clk-provider.h> |
58 | #include <linux/suspend.h> | ||
58 | #include <asm/trace.h> | 59 | #include <asm/trace.h> |
59 | 60 | ||
60 | #include <asm/io.h> | 61 | #include <asm/io.h> |
diff --git a/arch/powerpc/mm/mmap.c b/arch/powerpc/mm/mmap.c index 4087705ba90f..30611f832923 100644 --- a/arch/powerpc/mm/mmap.c +++ b/arch/powerpc/mm/mmap.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
27 | #include <linux/random.h> | 27 | #include <linux/random.h> |
28 | #include <linux/sched.h> | 28 | #include <linux/sched.h> |
29 | #include <linux/elf-randomize.h> | ||
29 | 30 | ||
30 | /* | 31 | /* |
31 | * Top of mmap area (just below the process stack). | 32 | * Top of mmap area (just below the process stack). |