Skip to contentSkip to conversation

Add some #includes for the v850 to eliminate some compiler warnings

PATCH New Miles Bader 1 participant 1 message Feb 6, 2004

lore
Share & tools
lore
#0 lore raw

PATCH v850 1/1 Add some #includes for the v850 to eliminate some compiler warnings

arch/v850/kernel/bug.c +1 -0
diff -ruN -X../cludes linux-2.6.2-uc0/arch/v850/kernel/bug.c linux-2.6.2-uc0-v850-20040206/arch/v850/kernel/bug.c
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/reboot.h>
 #include <linux/sched.h>
+#include <linux/module.h>
 
 #include <asm/errno.h>
 #include <asm/ptrace.h>
arch/v850/kernel/setup.c +3 -2
diff -ruN -X../cludes linux-2.6.2-uc0/arch/v850/kernel/setup.c linux-2.6.2-uc0-v850-20040206/arch/v850/kernel/setup.c
@@ -1,8 +1,8 @@
 /*
  * arch/v850/kernel/setup.c -- Arch-dependent initialization functions
  *
- *  Copyright (C) 2001,02  NEC Corporation
- *  Copyright (C) 2001,02  Miles Bader <[email protected]>
+ *  Copyright (C) 2001,02,03  NEC Electronics Corporation
+ *  Copyright (C) 2001,02,03  Miles Bader <[email protected]>
  *
  * This file is subject to the terms and conditions of the GNU General
  * Public License.  See the file COPYING in the main directory of this
@@ -13,6 +13,7 @@
 
 #include <linux/mm.h>
 #include <linux/bootmem.h>
+#include <linux/swap.h>		/* we don't have swap, but for nr_free_pages */
 #include <linux/irq.h>
 #include <linux/reboot.h>
 #include <linux/personality.h>
arch/v850/kernel/v850e_cache.c +1 -0
diff -ruN -X../cludes linux-2.6.2-uc0/arch/v850/kernel/v850e_cache.c linux-2.6.2-uc0-v850-20040206/arch/v850/kernel/v850e_cache.c
@@ -17,6 +17,7 @@
    implementation.  */
 
 #include <asm/entry.h>
+#include <asm/cacheflush.h>
 #include <asm/v850e_cache.h>
 
 #define WAIT_UNTIL_CLEAR(value) while (value) {}