]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
powerpc: sparse: Include headers for __weak symbols
authorDaniel Axtens <dja@axtens.net>
Wed, 6 Jan 2016 00:45:51 +0000 (11:45 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 12 Apr 2016 11:05:19 +0000 (21:05 +1000)
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>
arch/powerpc/kernel/process.c
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/time.c
arch/powerpc/mm/mmap.c

index b8500b4ac7fead4c78bc6478d109e3b0a6a50c76..4695088e7dd21d0e1bbb84391063720fe6f0593a 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/random.h>
 #include <linux/hw_breakpoint.h>
 #include <linux/uaccess.h>
+#include <linux/elf-randomize.h>
 
 #include <asm/pgtable.h>
 #include <asm/io.h>
@@ -55,6 +56,7 @@
 #include <asm/firmware.h>
 #endif
 #include <asm/code-patching.h>
+#include <asm/exec.h>
 #include <linux/kprobes.h>
 #include <linux/kdebug.h>
 
index 7030b035905dbf85b03bd36fa4bdc2a4a14982de..1b082c729c29b4a00715d65a70a5c5876750c209 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/of.h>
 #include <linux/of_fdt.h>
 #include <linux/libfdt.h>
+#include <linux/cpu.h>
 
 #include <asm/prom.h>
 #include <asm/rtas.h>
index 81b0900a39eef095a917a4471f4b09753c988ede..3ed9a5a21d77997fa96f3cb39dde621701c30f52 100644 (file)
@@ -55,6 +55,7 @@
 #include <linux/delay.h>
 #include <linux/irq_work.h>
 #include <linux/clk-provider.h>
+#include <linux/suspend.h>
 #include <asm/trace.h>
 
 #include <asm/io.h>
index 4087705ba90f34241200e2f30765794ea6b74b55..30611f832923e4e9c607a908d9a1eeb9fb11410d 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/mm.h>
 #include <linux/random.h>
 #include <linux/sched.h>
+#include <linux/elf-randomize.h>
 
 /*
  * Top of mmap area (just below the process stack).