score: add missing #includes
authorArnd Bergmann <arnd@arndb.de>
Sat, 27 Jun 2009 12:50:51 +0000 (14:50 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 27 Jun 2009 13:09:46 +0000 (15:09 +0200)
Files that define a global function should #include the
header with its declaration to make sure that the prototypes
do not diverge.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/score/include/asm/ucontext.h [new file with mode: 0644]
arch/score/kernel/module.c
arch/score/kernel/process.c
arch/score/kernel/signal.c
arch/score/kernel/sys_score.c

diff --git a/arch/score/include/asm/ucontext.h b/arch/score/include/asm/ucontext.h
new file mode 100644 (file)
index 0000000..9bc07b9
--- /dev/null
@@ -0,0 +1 @@
+#include <asm-generic/ucontext.h>
index 4ffce7fe1560082922ec2b66a84b1bcbe1f0cf35..1a625572ecc8b43f9b0371a1f6c5e84d7fc8fb36 100644 (file)
@@ -23,6 +23,7 @@
  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <linux/moduleloader.h>
 #include <linux/module.h>
 #include <linux/vmalloc.h>
 
index d93966f7ac83d1c86cc8841df1de387e1eb036be..25d08030a8837372106238c315524e17f9222c22 100644 (file)
@@ -24,6 +24,9 @@
  */
 
 #include <linux/module.h>
+#include <linux/reboot.h>
+#include <linux/elfcore.h>
+#include <linux/pm.h>
 
 void (*pm_power_off)(void);
 EXPORT_SYMBOL(pm_power_off);
index 5c004084d17d67a50911c0af6965b4f5f6f98834..252f6d95ad9ebd15e3d71649102be8ed89cc45ce 100644 (file)
@@ -27,7 +27,9 @@
 #include <linux/signal.h>
 #include <linux/unistd.h>
 #include <linux/uaccess.h>
-#include <asm-generic/ucontext.h>
+
+#include <asm/syscalls.h>
+#include <asm/ucontext.h>
 
 #include <asm/cacheflush.h>
 
index 331886104325c7fa199281cfbafa6a832b25f160..eb4d2d3b97adbf531353dc4068f5c3b929c9df83 100644 (file)
@@ -28,6 +28,8 @@
 #include <linux/mman.h>
 #include <linux/module.h>
 #include <linux/unistd.h>
+#include <linux/syscalls.h>
+#include <asm/syscalls.h>
 
 unsigned long shm_align_mask = PAGE_SIZE - 1;
 EXPORT_SYMBOL(shm_align_mask);
This page took 0.027759 seconds and 5 git commands to generate.