Skip to contentSkip to conversation

H8/300 some error/warning fix

PATCH New Yoshinori Sato 1 participant 1 message Oct 14, 2004 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 H8/300 some error/warning fix

arch/h8300/kernel/ptrace.c +1 -1
diff -ru linux-2.6.8/arch/h8300/kernel/ptrace.c linux-2.6.8-h8300/arch/h8300/kernel/ptrace.c
@@ -114,7 +114,7 @@
 
 	/* read the word at location addr in the USER area. */
 		case PTRACE_PEEKUSR: {
-			unsigned long tmp;
+			unsigned long tmp = 0;
 			
 			if ((addr & 3) || addr < 0 || addr >= sizeof(struct user)) {
 				ret = -EIO;
arch/h8300/lib/checksum.c +1 -0
diff -ru linux-2.6.8/arch/h8300/lib/checksum.c linux-2.6.8-h8300/arch/h8300/lib/checksum.c
@@ -32,6 +32,7 @@
    of the assembly has to go. */
 
 #include <net/checksum.h>
+#include <linux/module.h>
 
 static inline unsigned short from32to16(unsigned long x)
 {
arch/h8300/platform/h8300h/generic/timer.c +2 -2
diff -ru linux-2.6.8/arch/h8300/platform/h8300h/generic/timer.c linux-2.6.8-h8300/arch/h8300/platform/h8300h/generic/timer.c
@@ -32,7 +32,7 @@
 
 #define H8300_TIMER_FREQ CONFIG_CPU_CLOCK*1000/8192 /* Timer input freq. */
 
-int platform_timer_setup(irqreturn_t (*timer_int)(int, void *, struct pt_regs *))
+void __init platform_timer_setup(irqreturn_t (*timer_int)(int, void *, struct pt_regs *))
 {
 	/* setup 8bit timer ch2 */
 	ctrl_outb(H8300_TIMER_FREQ / HZ, TCORA2);      /* set interval */
@@ -69,7 +69,7 @@
 
 #define H8300_TIMER_FREQ CONFIG_CPU_CLOCK*1000/8 /* Timer input freq. */
 
-int platform_timer_setup(irqreturn_t (*timer_int)(int, void *, struct pt_regs *))
+void __init platform_timer_setup(irqreturn_t (*timer_int)(int, void *, struct pt_regs *))
 {
 	*(unsigned short *)GRA= H8300_TIMER_FREQ / HZ;  /* set interval */
 	*(unsigned short *)TCNT=0;                      /* clear counter */
include/asm-h8300/bitops.h +2 -0
diff -ru linux-2.6.8/include/asm-h8300/bitops.h linux-2.6.8-h8300/include/asm-h8300/bitops.h
@@ -273,6 +273,8 @@
 	return result + __ffs(tmp);
 }
 
+#define find_first_bit(addr, size) find_next_bit(addr, size, 0)
+
 /*
  * Every architecture must define this function. It's the fastest
  * way of searching a 140-bit bitmap where the first 100 bits are