Commit 26d5929e authored by Yoshinori Sato's avatar Yoshinori Sato Committed by Benjamin Herrenschmidt

[PATCH] H8/300 warning fix

Fix any warnings
parent 7478d7b8
......@@ -236,7 +236,7 @@ SYMBOL_NAME_LABEL(system_call)
mov.l @(LER3:16,sp),er2
jsr @er4
mov.l er0,@(LER0:16,sp) /* save the return value */
jsr SYMBOL_NAME(syscall_trace)
jsr @SYMBOL_NAME(syscall_trace)
SYMBOL_NAME_LABEL(ret_from_signal)
......@@ -253,7 +253,7 @@ SYMBOL_NAME_LABEL(ret_from_exception)
1:
mov.l @(TI_FLAGS:16,er2),er1
btst #TIF_NEED_RESCHED,r1l
bne @SYMBOL_NAME(reschedule):16
bne SYMBOL_NAME(reschedule):16
mov.l sp,er1
subs #4,er1 /* adjust retpc */
mov.l er2,er0
......@@ -273,7 +273,7 @@ SYMBOL_NAME_LABEL(reschedule)
SYMBOL_NAME_LABEL(ret_from_fork)
mov.l er2,er0
jsr @SYMBOL_NAME(schedule_tail)
jmp @SYMBOL_NAME_LABEL(ret_from_exception)
jmp @SYMBOL_NAME(ret_from_exception)
SYMBOL_NAME_LABEL(resume)
/*
......
......@@ -105,6 +105,7 @@ gpio_table:
;; PBDDR
.byte 0x00,0x00
.section .rodata
__target_name:
.asciz "generic"
......
......@@ -168,6 +168,7 @@ gpio_table:
;; PHDDR
.byte 0x00,0x00
.section .rodata
__target_name:
.asciz "EDOSK-2674"
......
......@@ -233,7 +233,7 @@ SYMBOL_NAME_LABEL(system_call)
mov.l @(LER3:16,sp),er2
jsr @er4
mov.l er0,@(LER0:16,sp) /* save the return value */
jsr SYMBOL_NAME(syscall_trace)
jsr @SYMBOL_NAME(syscall_trace)
SYMBOL_NAME_LABEL(ret_from_signal)
......@@ -250,7 +250,7 @@ SYMBOL_NAME_LABEL(ret_from_exception)
1:
mov.l @(TI_FLAGS:16,er2),er1
btst #TIF_NEED_RESCHED,r1l
bne @SYMBOL_NAME(reschedule):16
bne SYMBOL_NAME(reschedule):16
mov.l sp,er1
subs #4,er1 /* adjust retpc */
mov.l er2,er0
......@@ -270,7 +270,7 @@ SYMBOL_NAME_LABEL(reschedule)
SYMBOL_NAME_LABEL(ret_from_fork)
mov.l er2,er0
jsr @SYMBOL_NAME(schedule_tail)
jmp @SYMBOL_NAME_LABEL(ret_from_exception)
jmp @SYMBOL_NAME(ret_from_exception)
SYMBOL_NAME_LABEL(resume)
......
......@@ -110,6 +110,7 @@ gpio_table:
;; PHDDR
.byte 0x00,0x00
.section .rodata
__target_name:
.asciz "generic"
......
......@@ -17,8 +17,8 @@
/****************************************************************************/
void h8300_ide_print_resource(char *name, hw_regs_t *hw);
static inline int ide_default_irq(unsigned long base) { return 0; };
static inline ide_ioreg_t ide_default_io_base(int index) { return 0; };
static __inline__ int ide_default_irq(unsigned long base) { return 0; };
static __inline__ unsigned long ide_default_io_base(int index) { return 0; };
static __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port,
unsigned long ctrl_port, int *irq)
......
#ifndef _H8300NOMMU_PAGE_H
#define _H8300NOMMU_PAGE_H
#ifndef _H8300_PAGE_H
#define _H8300_PAGE_H
#include <linux/config.h>
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT (12)
#define PAGE_SIZE (4096)
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))
#ifdef __KERNEL__
......@@ -98,4 +98,4 @@ extern unsigned long memory_end;
#endif /* __KERNEL__ */
#endif /* _H8300NOMMU_PAGE_H */
#endif /* _H8300_PAGE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment