diff options
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/cpu-sh3/dma.h | 2 | ||||
-rw-r--r-- | include/asm-sh/cpu-sh4/dma-sh7780.h | 2 | ||||
-rw-r--r-- | include/asm-sh/cpu-sh4/dma.h | 2 | ||||
-rw-r--r-- | include/asm-sh/edosk7705.h | 2 | ||||
-rw-r--r-- | include/asm-sh/kdebug.h | 1 | ||||
-rw-r--r-- | include/asm-sh/kexec.h | 2 | ||||
-rw-r--r-- | include/asm-sh/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-sh/snapgear.h | 2 | ||||
-rw-r--r-- | include/asm-sh/system.h | 10 |
9 files changed, 6 insertions, 21 deletions
diff --git a/include/asm-sh/cpu-sh3/dma.h b/include/asm-sh/cpu-sh3/dma.h index 954801b46022..3a66dc458023 100644 --- a/include/asm-sh/cpu-sh3/dma.h +++ b/include/asm-sh/cpu-sh3/dma.h | |||
@@ -26,7 +26,7 @@ enum { | |||
26 | XMIT_SZ_128BIT, | 26 | XMIT_SZ_128BIT, |
27 | }; | 27 | }; |
28 | 28 | ||
29 | static unsigned int ts_shift[] __attribute__ ((used)) = { | 29 | static unsigned int ts_shift[] __maybe_unused = { |
30 | [XMIT_SZ_8BIT] = 0, | 30 | [XMIT_SZ_8BIT] = 0, |
31 | [XMIT_SZ_16BIT] = 1, | 31 | [XMIT_SZ_16BIT] = 1, |
32 | [XMIT_SZ_32BIT] = 2, | 32 | [XMIT_SZ_32BIT] = 2, |
diff --git a/include/asm-sh/cpu-sh4/dma-sh7780.h b/include/asm-sh/cpu-sh4/dma-sh7780.h index 6c90d28331b2..71b426a6e482 100644 --- a/include/asm-sh/cpu-sh4/dma-sh7780.h +++ b/include/asm-sh/cpu-sh4/dma-sh7780.h | |||
@@ -28,7 +28,7 @@ enum { | |||
28 | /* | 28 | /* |
29 | * The DMA count is defined as the number of bytes to transfer. | 29 | * The DMA count is defined as the number of bytes to transfer. |
30 | */ | 30 | */ |
31 | static unsigned int __attribute__ ((used)) ts_shift[] = { | 31 | static unsigned int ts_shift[] __maybe_unused = { |
32 | [XMIT_SZ_8BIT] = 0, | 32 | [XMIT_SZ_8BIT] = 0, |
33 | [XMIT_SZ_16BIT] = 1, | 33 | [XMIT_SZ_16BIT] = 1, |
34 | [XMIT_SZ_32BIT] = 2, | 34 | [XMIT_SZ_32BIT] = 2, |
diff --git a/include/asm-sh/cpu-sh4/dma.h b/include/asm-sh/cpu-sh4/dma.h index c135e9cebd9c..36e26a964765 100644 --- a/include/asm-sh/cpu-sh4/dma.h +++ b/include/asm-sh/cpu-sh4/dma.h | |||
@@ -53,7 +53,7 @@ enum { | |||
53 | /* | 53 | /* |
54 | * The DMA count is defined as the number of bytes to transfer. | 54 | * The DMA count is defined as the number of bytes to transfer. |
55 | */ | 55 | */ |
56 | static unsigned int ts_shift[] __attribute__ ((used)) = { | 56 | static unsigned int ts_shift[] __maybe_unused = { |
57 | [XMIT_SZ_64BIT] = 3, | 57 | [XMIT_SZ_64BIT] = 3, |
58 | [XMIT_SZ_8BIT] = 0, | 58 | [XMIT_SZ_8BIT] = 0, |
59 | [XMIT_SZ_16BIT] = 1, | 59 | [XMIT_SZ_16BIT] = 1, |
diff --git a/include/asm-sh/edosk7705.h b/include/asm-sh/edosk7705.h index a1089a65bc36..5bdc9d9be3de 100644 --- a/include/asm-sh/edosk7705.h +++ b/include/asm-sh/edosk7705.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-sh/edosk7705/io.h | 2 | * include/asm-sh/edosk7705.h |
3 | * | 3 | * |
4 | * Modified version of io_se.h for the EDOSK7705 specific functions. | 4 | * Modified version of io_se.h for the EDOSK7705 specific functions. |
5 | * | 5 | * |
diff --git a/include/asm-sh/kdebug.h b/include/asm-sh/kdebug.h index ef009baf5a11..493c20629747 100644 --- a/include/asm-sh/kdebug.h +++ b/include/asm-sh/kdebug.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __ASM_SH_KDEBUG_H | 2 | #define __ASM_SH_KDEBUG_H |
3 | 3 | ||
4 | #include <linux/notifier.h> | 4 | #include <linux/notifier.h> |
5 | #include <asm-generic/kdebug.h> | ||
5 | 6 | ||
6 | struct pt_regs; | 7 | struct pt_regs; |
7 | 8 | ||
diff --git a/include/asm-sh/kexec.h b/include/asm-sh/kexec.h index da36a7548601..00f4260ef09b 100644 --- a/include/asm-sh/kexec.h +++ b/include/asm-sh/kexec.h | |||
@@ -26,8 +26,6 @@ | |||
26 | /* The native architecture */ | 26 | /* The native architecture */ |
27 | #define KEXEC_ARCH KEXEC_ARCH_SH | 27 | #define KEXEC_ARCH KEXEC_ARCH_SH |
28 | 28 | ||
29 | #define MAX_NOTE_BYTES 1024 | ||
30 | |||
31 | static inline void crash_setup_regs(struct pt_regs *newregs, | 29 | static inline void crash_setup_regs(struct pt_regs *newregs, |
32 | struct pt_regs *oldregs) | 30 | struct pt_regs *oldregs) |
33 | { | 31 | { |
diff --git a/include/asm-sh/pgtable.h b/include/asm-sh/pgtable.h index 184d7fcaaf10..5b523c7e7d99 100644 --- a/include/asm-sh/pgtable.h +++ b/include/asm-sh/pgtable.h | |||
@@ -568,10 +568,6 @@ typedef pte_t *pte_addr_t; | |||
568 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 568 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
569 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 569 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
570 | 570 | ||
571 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
572 | #define GET_IOSPACE(pfn) 0 | ||
573 | #define GET_PFN(pfn) (pfn) | ||
574 | |||
575 | struct mm_struct; | 571 | struct mm_struct; |
576 | 572 | ||
577 | /* | 573 | /* |
diff --git a/include/asm-sh/snapgear.h b/include/asm-sh/snapgear.h index 6b5e4ddc073a..2d712e72c9e5 100644 --- a/include/asm-sh/snapgear.h +++ b/include/asm-sh/snapgear.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-sh/snapgear/io.h | 2 | * include/asm-sh/snapgear.h |
3 | * | 3 | * |
4 | * Modified version of io_se.h for the snapgear-specific functions. | 4 | * Modified version of io_se.h for the snapgear-specific functions. |
5 | * | 5 | * |
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h index 127af304865f..e7e96ee0c8a5 100644 --- a/include/asm-sh/system.h +++ b/include/asm-sh/system.h | |||
@@ -82,16 +82,6 @@ static inline void sched_cacheflush(void) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | static inline unsigned long tas(volatile int *m) | ||
86 | { | ||
87 | unsigned long retval; | ||
88 | |||
89 | __asm__ __volatile__ ("tas.b @%1\n\t" | ||
90 | "movt %0" | ||
91 | : "=r" (retval): "r" (m): "t", "memory"); | ||
92 | return retval; | ||
93 | } | ||
94 | |||
95 | /* | 85 | /* |
96 | * A brief note on ctrl_barrier(), the control register write barrier. | 86 | * A brief note on ctrl_barrier(), the control register write barrier. |
97 | * | 87 | * |