aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/compat_signal.h8
-rw-r--r--arch/sparc/include/asm/obio.h32
-rw-r--r--arch/sparc/include/asm/openprom.h10
-rw-r--r--arch/sparc/include/asm/pgtable_64.h2
-rw-r--r--arch/sparc/include/asm/processor_64.h2
-rw-r--r--arch/sparc/include/asm/sigcontext.h2
-rw-r--r--arch/sparc/include/asm/tsb.h2
-rw-r--r--arch/sparc/include/uapi/asm/stat.h4
-rw-r--r--arch/sparc/kernel/audit.c12
-rw-r--r--arch/sparc/kernel/compat_audit.c12
-rw-r--r--arch/sparc/kernel/entry.S2
-rw-r--r--arch/sparc/kernel/ioport.c6
-rw-r--r--arch/sparc/kernel/kernel.h12
-rw-r--r--arch/sparc/kernel/leon_kernel.c2
-rw-r--r--arch/sparc/kernel/process_64.c2
-rw-r--r--arch/sparc/kernel/setup_32.c2
-rw-r--r--arch/sparc/kernel/setup_64.c2
-rw-r--r--arch/sparc/kernel/signal32.c2
-rw-r--r--arch/sparc/kernel/sys_sparc_64.c4
-rw-r--r--arch/sparc/kernel/sysfs.c2
-rw-r--r--arch/sparc/kernel/unaligned_64.c4
-rw-r--r--arch/sparc/mm/fault_32.c8
-rw-r--r--arch/sparc/net/bpf_jit_comp.c2
23 files changed, 68 insertions, 68 deletions
diff --git a/arch/sparc/include/asm/compat_signal.h b/arch/sparc/include/asm/compat_signal.h
index 9ed1f128b4d1..4b027b1044fa 100644
--- a/arch/sparc/include/asm/compat_signal.h
+++ b/arch/sparc/include/asm/compat_signal.h
@@ -6,17 +6,17 @@
6 6
7#ifdef CONFIG_COMPAT 7#ifdef CONFIG_COMPAT
8struct __new_sigaction32 { 8struct __new_sigaction32 {
9 unsigned sa_handler; 9 unsigned int sa_handler;
10 unsigned int sa_flags; 10 unsigned int sa_flags;
11 unsigned sa_restorer; /* not used by Linux/SPARC yet */ 11 unsigned int sa_restorer; /* not used by Linux/SPARC yet */
12 compat_sigset_t sa_mask; 12 compat_sigset_t sa_mask;
13}; 13};
14 14
15struct __old_sigaction32 { 15struct __old_sigaction32 {
16 unsigned sa_handler; 16 unsigned int sa_handler;
17 compat_old_sigset_t sa_mask; 17 compat_old_sigset_t sa_mask;
18 unsigned int sa_flags; 18 unsigned int sa_flags;
19 unsigned sa_restorer; /* not used by Linux/SPARC yet */ 19 unsigned int sa_restorer; /* not used by Linux/SPARC yet */
20}; 20};
21#endif 21#endif
22 22
diff --git a/arch/sparc/include/asm/obio.h b/arch/sparc/include/asm/obio.h
index 910c1d9af1f8..426ad75103fb 100644
--- a/arch/sparc/include/asm/obio.h
+++ b/arch/sparc/include/asm/obio.h
@@ -117,9 +117,9 @@ static inline void bw_clear_intr_mask(int sbus_level, int mask)
117 "i" (ASI_M_CTL)); 117 "i" (ASI_M_CTL));
118} 118}
119 119
120static inline unsigned bw_get_prof_limit(int cpu) 120static inline unsigned int bw_get_prof_limit(int cpu)
121{ 121{
122 unsigned limit; 122 unsigned int limit;
123 123
124 __asm__ __volatile__ ("lda [%1] %2, %0" : 124 __asm__ __volatile__ ("lda [%1] %2, %0" :
125 "=r" (limit) : 125 "=r" (limit) :
@@ -128,7 +128,7 @@ static inline unsigned bw_get_prof_limit(int cpu)
128 return limit; 128 return limit;
129} 129}
130 130
131static inline void bw_set_prof_limit(int cpu, unsigned limit) 131static inline void bw_set_prof_limit(int cpu, unsigned int limit)
132{ 132{
133 __asm__ __volatile__ ("sta %0, [%1] %2" : : 133 __asm__ __volatile__ ("sta %0, [%1] %2" : :
134 "r" (limit), 134 "r" (limit),
@@ -136,9 +136,9 @@ static inline void bw_set_prof_limit(int cpu, unsigned limit)
136 "i" (ASI_M_CTL)); 136 "i" (ASI_M_CTL));
137} 137}
138 138
139static inline unsigned bw_get_ctrl(int cpu) 139static inline unsigned int bw_get_ctrl(int cpu)
140{ 140{
141 unsigned ctrl; 141 unsigned int ctrl;
142 142
143 __asm__ __volatile__ ("lda [%1] %2, %0" : 143 __asm__ __volatile__ ("lda [%1] %2, %0" :
144 "=r" (ctrl) : 144 "=r" (ctrl) :
@@ -147,7 +147,7 @@ static inline unsigned bw_get_ctrl(int cpu)
147 return ctrl; 147 return ctrl;
148} 148}
149 149
150static inline void bw_set_ctrl(int cpu, unsigned ctrl) 150static inline void bw_set_ctrl(int cpu, unsigned int ctrl)
151{ 151{
152 __asm__ __volatile__ ("sta %0, [%1] %2" : : 152 __asm__ __volatile__ ("sta %0, [%1] %2" : :
153 "r" (ctrl), 153 "r" (ctrl),
@@ -155,9 +155,9 @@ static inline void bw_set_ctrl(int cpu, unsigned ctrl)
155 "i" (ASI_M_CTL)); 155 "i" (ASI_M_CTL));
156} 156}
157 157
158static inline unsigned cc_get_ipen(void) 158static inline unsigned int cc_get_ipen(void)
159{ 159{
160 unsigned pending; 160 unsigned int pending;
161 161
162 __asm__ __volatile__ ("lduha [%1] %2, %0" : 162 __asm__ __volatile__ ("lduha [%1] %2, %0" :
163 "=r" (pending) : 163 "=r" (pending) :
@@ -166,7 +166,7 @@ static inline unsigned cc_get_ipen(void)
166 return pending; 166 return pending;
167} 167}
168 168
169static inline void cc_set_iclr(unsigned clear) 169static inline void cc_set_iclr(unsigned int clear)
170{ 170{
171 __asm__ __volatile__ ("stha %0, [%1] %2" : : 171 __asm__ __volatile__ ("stha %0, [%1] %2" : :
172 "r" (clear), 172 "r" (clear),
@@ -174,9 +174,9 @@ static inline void cc_set_iclr(unsigned clear)
174 "i" (ASI_M_MXCC)); 174 "i" (ASI_M_MXCC));
175} 175}
176 176
177static inline unsigned cc_get_imsk(void) 177static inline unsigned int cc_get_imsk(void)
178{ 178{
179 unsigned mask; 179 unsigned int mask;
180 180
181 __asm__ __volatile__ ("lduha [%1] %2, %0" : 181 __asm__ __volatile__ ("lduha [%1] %2, %0" :
182 "=r" (mask) : 182 "=r" (mask) :
@@ -185,7 +185,7 @@ static inline unsigned cc_get_imsk(void)
185 return mask; 185 return mask;
186} 186}
187 187
188static inline void cc_set_imsk(unsigned mask) 188static inline void cc_set_imsk(unsigned int mask)
189{ 189{
190 __asm__ __volatile__ ("stha %0, [%1] %2" : : 190 __asm__ __volatile__ ("stha %0, [%1] %2" : :
191 "r" (mask), 191 "r" (mask),
@@ -193,9 +193,9 @@ static inline void cc_set_imsk(unsigned mask)
193 "i" (ASI_M_MXCC)); 193 "i" (ASI_M_MXCC));
194} 194}
195 195
196static inline unsigned cc_get_imsk_other(int cpuid) 196static inline unsigned int cc_get_imsk_other(int cpuid)
197{ 197{
198 unsigned mask; 198 unsigned int mask;
199 199
200 __asm__ __volatile__ ("lduha [%1] %2, %0" : 200 __asm__ __volatile__ ("lduha [%1] %2, %0" :
201 "=r" (mask) : 201 "=r" (mask) :
@@ -204,7 +204,7 @@ static inline unsigned cc_get_imsk_other(int cpuid)
204 return mask; 204 return mask;
205} 205}
206 206
207static inline void cc_set_imsk_other(int cpuid, unsigned mask) 207static inline void cc_set_imsk_other(int cpuid, unsigned int mask)
208{ 208{
209 __asm__ __volatile__ ("stha %0, [%1] %2" : : 209 __asm__ __volatile__ ("stha %0, [%1] %2" : :
210 "r" (mask), 210 "r" (mask),
@@ -212,7 +212,7 @@ static inline void cc_set_imsk_other(int cpuid, unsigned mask)
212 "i" (ASI_M_CTL)); 212 "i" (ASI_M_CTL));
213} 213}
214 214
215static inline void cc_set_igen(unsigned gen) 215static inline void cc_set_igen(unsigned int gen)
216{ 216{
217 __asm__ __volatile__ ("sta %0, [%1] %2" : : 217 __asm__ __volatile__ ("sta %0, [%1] %2" : :
218 "r" (gen), 218 "r" (gen),
diff --git a/arch/sparc/include/asm/openprom.h b/arch/sparc/include/asm/openprom.h
index 47eaafad15ce..63374c4413a8 100644
--- a/arch/sparc/include/asm/openprom.h
+++ b/arch/sparc/include/asm/openprom.h
@@ -29,12 +29,12 @@ struct linux_dev_v0_funcs {
29/* V2 and later prom device operations. */ 29/* V2 and later prom device operations. */
30struct linux_dev_v2_funcs { 30struct linux_dev_v2_funcs {
31 phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ 31 phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */
32 char * (*v2_dumb_mem_alloc)(char *va, unsigned sz); 32 char * (*v2_dumb_mem_alloc)(char *va, unsigned int sz);
33 void (*v2_dumb_mem_free)(char *va, unsigned sz); 33 void (*v2_dumb_mem_free)(char *va, unsigned int sz);
34 34
35 /* To map devices into virtual I/O space. */ 35 /* To map devices into virtual I/O space. */
36 char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned paddr, unsigned sz); 36 char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned int paddr, unsigned int sz);
37 void (*v2_dumb_munmap)(char *virta, unsigned size); 37 void (*v2_dumb_munmap)(char *virta, unsigned int size);
38 38
39 int (*v2_dev_open)(char *devpath); 39 int (*v2_dev_open)(char *devpath);
40 void (*v2_dev_close)(int d); 40 void (*v2_dev_close)(int d);
@@ -50,7 +50,7 @@ struct linux_dev_v2_funcs {
50struct linux_mlist_v0 { 50struct linux_mlist_v0 {
51 struct linux_mlist_v0 *theres_more; 51 struct linux_mlist_v0 *theres_more;
52 unsigned int start_adr; 52 unsigned int start_adr;
53 unsigned num_bytes; 53 unsigned int num_bytes;
54}; 54};
55 55
56struct linux_mem_v0 { 56struct linux_mem_v0 {
diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h
index 7a38d6a576c5..f089cfa249f3 100644
--- a/arch/sparc/include/asm/pgtable_64.h
+++ b/arch/sparc/include/asm/pgtable_64.h
@@ -218,7 +218,7 @@ extern pgprot_t PAGE_KERNEL_LOCKED;
218extern pgprot_t PAGE_COPY; 218extern pgprot_t PAGE_COPY;
219extern pgprot_t PAGE_SHARED; 219extern pgprot_t PAGE_SHARED;
220 220
221/* XXX This uglyness is for the atyfb driver's sparc mmap() support. XXX */ 221/* XXX This ugliness is for the atyfb driver's sparc mmap() support. XXX */
222extern unsigned long _PAGE_IE; 222extern unsigned long _PAGE_IE;
223extern unsigned long _PAGE_E; 223extern unsigned long _PAGE_E;
224extern unsigned long _PAGE_CACHE; 224extern unsigned long _PAGE_CACHE;
diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/processor_64.h
index 6924bdefe148..ce2595c89471 100644
--- a/arch/sparc/include/asm/processor_64.h
+++ b/arch/sparc/include/asm/processor_64.h
@@ -201,7 +201,7 @@ unsigned long get_wchan(struct task_struct *task);
201#define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP]) 201#define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP])
202 202
203/* Please see the commentary in asm/backoff.h for a description of 203/* Please see the commentary in asm/backoff.h for a description of
204 * what these instructions are doing and how they have been choosen. 204 * what these instructions are doing and how they have been chosen.
205 * To make a long story short, we are trying to yield the current cpu 205 * To make a long story short, we are trying to yield the current cpu
206 * strand during busy loops. 206 * strand during busy loops.
207 */ 207 */
diff --git a/arch/sparc/include/asm/sigcontext.h b/arch/sparc/include/asm/sigcontext.h
index fc2df1e892cb..f4eb630a58ed 100644
--- a/arch/sparc/include/asm/sigcontext.h
+++ b/arch/sparc/include/asm/sigcontext.h
@@ -25,7 +25,7 @@ struct sigcontext32 {
25 int sigc_oswins; /* outstanding windows */ 25 int sigc_oswins; /* outstanding windows */
26 26
27 /* stack ptrs for each regwin buf */ 27 /* stack ptrs for each regwin buf */
28 unsigned sigc_spbuf[__SUNOS_MAXWIN]; 28 unsigned int sigc_spbuf[__SUNOS_MAXWIN];
29 29
30 /* Windows to restore after signal */ 30 /* Windows to restore after signal */
31 struct reg_window32 sigc_wbuf[__SUNOS_MAXWIN]; 31 struct reg_window32 sigc_wbuf[__SUNOS_MAXWIN];
diff --git a/arch/sparc/include/asm/tsb.h b/arch/sparc/include/asm/tsb.h
index ecb49cfa3be9..c6a155c3904e 100644
--- a/arch/sparc/include/asm/tsb.h
+++ b/arch/sparc/include/asm/tsb.h
@@ -149,7 +149,7 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end;
149 * page size in question. So for PMD mappings (which fall on 149 * page size in question. So for PMD mappings (which fall on
150 * bit 23, for 8MB per PMD) we must propagate bit 22 for a 150 * bit 23, for 8MB per PMD) we must propagate bit 22 for a
151 * 4MB huge page. For huge PUDs (which fall on bit 33, for 151 * 4MB huge page. For huge PUDs (which fall on bit 33, for
152 * 8GB per PUD), we have to accomodate 256MB and 2GB huge 152 * 8GB per PUD), we have to accommodate 256MB and 2GB huge
153 * pages. So for those we propagate bits 32 to 28. 153 * pages. So for those we propagate bits 32 to 28.
154 */ 154 */
155#define KERN_PGTABLE_WALK(VADDR, REG1, REG2, FAIL_LABEL) \ 155#define KERN_PGTABLE_WALK(VADDR, REG1, REG2, FAIL_LABEL) \
diff --git a/arch/sparc/include/uapi/asm/stat.h b/arch/sparc/include/uapi/asm/stat.h
index a232e9e1f4e5..2f0583a2c689 100644
--- a/arch/sparc/include/uapi/asm/stat.h
+++ b/arch/sparc/include/uapi/asm/stat.h
@@ -6,13 +6,13 @@
6#if defined(__sparc__) && defined(__arch64__) 6#if defined(__sparc__) && defined(__arch64__)
7/* 64 bit sparc */ 7/* 64 bit sparc */
8struct stat { 8struct stat {
9 unsigned st_dev; 9 unsigned int st_dev;
10 ino_t st_ino; 10 ino_t st_ino;
11 mode_t st_mode; 11 mode_t st_mode;
12 short st_nlink; 12 short st_nlink;
13 uid_t st_uid; 13 uid_t st_uid;
14 gid_t st_gid; 14 gid_t st_gid;
15 unsigned st_rdev; 15 unsigned int st_rdev;
16 off_t st_size; 16 off_t st_size;
17 time_t st_atime; 17 time_t st_atime;
18 time_t st_mtime; 18 time_t st_mtime;
diff --git a/arch/sparc/kernel/audit.c b/arch/sparc/kernel/audit.c
index 24361b494a93..2585c1e14bcc 100644
--- a/arch/sparc/kernel/audit.c
+++ b/arch/sparc/kernel/audit.c
@@ -5,27 +5,27 @@
5 5
6#include "kernel.h" 6#include "kernel.h"
7 7
8static unsigned dir_class[] = { 8static unsigned int dir_class[] = {
9#include <asm-generic/audit_dir_write.h> 9#include <asm-generic/audit_dir_write.h>
10~0U 10~0U
11}; 11};
12 12
13static unsigned read_class[] = { 13static unsigned int read_class[] = {
14#include <asm-generic/audit_read.h> 14#include <asm-generic/audit_read.h>
15~0U 15~0U
16}; 16};
17 17
18static unsigned write_class[] = { 18static unsigned int write_class[] = {
19#include <asm-generic/audit_write.h> 19#include <asm-generic/audit_write.h>
20~0U 20~0U
21}; 21};
22 22
23static unsigned chattr_class[] = { 23static unsigned int chattr_class[] = {
24#include <asm-generic/audit_change_attr.h> 24#include <asm-generic/audit_change_attr.h>
25~0U 25~0U
26}; 26};
27 27
28static unsigned signal_class[] = { 28static unsigned int signal_class[] = {
29#include <asm-generic/audit_signal.h> 29#include <asm-generic/audit_signal.h>
30~0U 30~0U
31}; 31};
@@ -39,7 +39,7 @@ int audit_classify_arch(int arch)
39 return 0; 39 return 0;
40} 40}
41 41
42int audit_classify_syscall(int abi, unsigned syscall) 42int audit_classify_syscall(int abi, unsigned int syscall)
43{ 43{
44#ifdef CONFIG_COMPAT 44#ifdef CONFIG_COMPAT
45 if (abi == AUDIT_ARCH_SPARC) 45 if (abi == AUDIT_ARCH_SPARC)
diff --git a/arch/sparc/kernel/compat_audit.c b/arch/sparc/kernel/compat_audit.c
index 7062263d09c1..e5611cd428f1 100644
--- a/arch/sparc/kernel/compat_audit.c
+++ b/arch/sparc/kernel/compat_audit.c
@@ -2,32 +2,32 @@
2#include <asm/unistd.h> 2#include <asm/unistd.h>
3#include "kernel.h" 3#include "kernel.h"
4 4
5unsigned sparc32_dir_class[] = { 5unsigned int sparc32_dir_class[] = {
6#include <asm-generic/audit_dir_write.h> 6#include <asm-generic/audit_dir_write.h>
7~0U 7~0U
8}; 8};
9 9
10unsigned sparc32_chattr_class[] = { 10unsigned int sparc32_chattr_class[] = {
11#include <asm-generic/audit_change_attr.h> 11#include <asm-generic/audit_change_attr.h>
12~0U 12~0U
13}; 13};
14 14
15unsigned sparc32_write_class[] = { 15unsigned int sparc32_write_class[] = {
16#include <asm-generic/audit_write.h> 16#include <asm-generic/audit_write.h>
17~0U 17~0U
18}; 18};
19 19
20unsigned sparc32_read_class[] = { 20unsigned int sparc32_read_class[] = {
21#include <asm-generic/audit_read.h> 21#include <asm-generic/audit_read.h>
22~0U 22~0U
23}; 23};
24 24
25unsigned sparc32_signal_class[] = { 25unsigned int sparc32_signal_class[] = {
26#include <asm-generic/audit_signal.h> 26#include <asm-generic/audit_signal.h>
27~0U 27~0U
28}; 28};
29 29
30int sparc32_classify_syscall(unsigned syscall) 30int sparc32_classify_syscall(unsigned int syscall)
31{ 31{
32 switch(syscall) { 32 switch(syscall) {
33 case __NR_open: 33 case __NR_open:
diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S
index a83707c83be8..51aa6e86a5f8 100644
--- a/arch/sparc/kernel/entry.S
+++ b/arch/sparc/kernel/entry.S
@@ -1255,7 +1255,7 @@ flush_patch_exception:
1255kuw_patch1_7win: sll %o3, 6, %o3 1255kuw_patch1_7win: sll %o3, 6, %o3
1256 1256
1257 /* No matter how much overhead this routine has in the worst 1257 /* No matter how much overhead this routine has in the worst
1258 * case scenerio, it is several times better than taking the 1258 * case scenario, it is several times better than taking the
1259 * traps with the old method of just doing flush_user_windows(). 1259 * traps with the old method of just doing flush_user_windows().
1260 */ 1260 */
1261kill_user_windows: 1261kill_user_windows:
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index 28fed53b13a0..ffd5ff4678cf 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -131,7 +131,7 @@ void __iomem *ioremap(unsigned long offset, unsigned long size)
131EXPORT_SYMBOL(ioremap); 131EXPORT_SYMBOL(ioremap);
132 132
133/* 133/*
134 * Comlimentary to ioremap(). 134 * Complementary to ioremap().
135 */ 135 */
136void iounmap(volatile void __iomem *virtual) 136void iounmap(volatile void __iomem *virtual)
137{ 137{
@@ -233,7 +233,7 @@ _sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz)
233} 233}
234 234
235/* 235/*
236 * Comlimentary to _sparc_ioremap(). 236 * Complementary to _sparc_ioremap().
237 */ 237 */
238static void _sparc_free_io(struct resource *res) 238static void _sparc_free_io(struct resource *res)
239{ 239{
@@ -532,7 +532,7 @@ static void pci32_unmap_page(struct device *dev, dma_addr_t ba, size_t size,
532} 532}
533 533
534/* Map a set of buffers described by scatterlist in streaming 534/* Map a set of buffers described by scatterlist in streaming
535 * mode for DMA. This is the scather-gather version of the 535 * mode for DMA. This is the scatter-gather version of the
536 * above pci_map_single interface. Here the scatter gather list 536 * above pci_map_single interface. Here the scatter gather list
537 * elements are each tagged with the appropriate dma address 537 * elements are each tagged with the appropriate dma address
538 * and length. They are obtained via sg_dma_{address,length}(SG). 538 * and length. They are obtained via sg_dma_{address,length}(SG).
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h
index e7f652be9e61..5057ec2e4af6 100644
--- a/arch/sparc/kernel/kernel.h
+++ b/arch/sparc/kernel/kernel.h
@@ -54,12 +54,12 @@ void do_signal32(struct pt_regs * regs);
54asmlinkage int do_sys32_sigstack(u32 u_ssptr, u32 u_ossptr, unsigned long sp); 54asmlinkage int do_sys32_sigstack(u32 u_ssptr, u32 u_ossptr, unsigned long sp);
55 55
56/* compat_audit.c */ 56/* compat_audit.c */
57extern unsigned sparc32_dir_class[]; 57extern unsigned int sparc32_dir_class[];
58extern unsigned sparc32_chattr_class[]; 58extern unsigned int sparc32_chattr_class[];
59extern unsigned sparc32_write_class[]; 59extern unsigned int sparc32_write_class[];
60extern unsigned sparc32_read_class[]; 60extern unsigned int sparc32_read_class[];
61extern unsigned sparc32_signal_class[]; 61extern unsigned int sparc32_signal_class[];
62int sparc32_classify_syscall(unsigned syscall); 62int sparc32_classify_syscall(unsigned int syscall);
63#endif 63#endif
64 64
65#ifdef CONFIG_SPARC32 65#ifdef CONFIG_SPARC32
diff --git a/arch/sparc/kernel/leon_kernel.c b/arch/sparc/kernel/leon_kernel.c
index 42efcf85f721..33cd171d933e 100644
--- a/arch/sparc/kernel/leon_kernel.c
+++ b/arch/sparc/kernel/leon_kernel.c
@@ -203,7 +203,7 @@ static struct irq_chip leon_irq = {
203 203
204/* 204/*
205 * Build a LEON IRQ for the edge triggered LEON IRQ controller: 205 * Build a LEON IRQ for the edge triggered LEON IRQ controller:
206 * Edge (normal) IRQ - handle_simple_irq, ack=DONT-CARE, never ack 206 * Edge (normal) IRQ - handle_simple_irq, ack=DON'T-CARE, never ack
207 * Level IRQ (PCI|Level-GPIO) - handle_fasteoi_irq, ack=1, ack after ISR 207 * Level IRQ (PCI|Level-GPIO) - handle_fasteoi_irq, ack=1, ack after ISR
208 * Per-CPU Edge - handle_percpu_irq, ack=0 208 * Per-CPU Edge - handle_percpu_irq, ack=0
209 */ 209 */
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index 46a59643bb1c..c16ef1af1843 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -103,7 +103,7 @@ static void show_regwindow32(struct pt_regs *regs)
103 mm_segment_t old_fs; 103 mm_segment_t old_fs;
104 104
105 __asm__ __volatile__ ("flushw"); 105 __asm__ __volatile__ ("flushw");
106 rw = compat_ptr((unsigned)regs->u_regs[14]); 106 rw = compat_ptr((unsigned int)regs->u_regs[14]);
107 old_fs = get_fs(); 107 old_fs = get_fs();
108 set_fs (USER_DS); 108 set_fs (USER_DS);
109 if (copy_from_user (&r_w, rw, sizeof(r_w))) { 109 if (copy_from_user (&r_w, rw, sizeof(r_w))) {
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c
index baef495c06bd..69d75ff1c25c 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -109,7 +109,7 @@ unsigned long cmdline_memory_size __initdata = 0;
109unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */ 109unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */
110 110
111static void 111static void
112prom_console_write(struct console *con, const char *s, unsigned n) 112prom_console_write(struct console *con, const char *s, unsigned int n)
113{ 113{
114 prom_write(s, n); 114 prom_write(s, n);
115} 115}
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c
index f3185e2b028b..26db95b54ee9 100644
--- a/arch/sparc/kernel/setup_64.c
+++ b/arch/sparc/kernel/setup_64.c
@@ -77,7 +77,7 @@ struct screen_info screen_info = {
77}; 77};
78 78
79static void 79static void
80prom_console_write(struct console *con, const char *s, unsigned n) 80prom_console_write(struct console *con, const char *s, unsigned int n)
81{ 81{
82 prom_write(s, n); 82 prom_write(s, n);
83} 83}
diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c
index 4eed773a7735..3c25241fa5cb 100644
--- a/arch/sparc/kernel/signal32.c
+++ b/arch/sparc/kernel/signal32.c
@@ -144,7 +144,7 @@ void do_sigreturn32(struct pt_regs *regs)
144 compat_uptr_t fpu_save; 144 compat_uptr_t fpu_save;
145 compat_uptr_t rwin_save; 145 compat_uptr_t rwin_save;
146 unsigned int psr; 146 unsigned int psr;
147 unsigned pc, npc; 147 unsigned int pc, npc;
148 sigset_t set; 148 sigset_t set;
149 compat_sigset_t seta; 149 compat_sigset_t seta;
150 int err, i; 150 int err, i;
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
index b489e9759518..fe8b8ee8e660 100644
--- a/arch/sparc/kernel/sys_sparc_64.c
+++ b/arch/sparc/kernel/sys_sparc_64.c
@@ -337,10 +337,10 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
337 switch (call) { 337 switch (call) {
338 case SEMOP: 338 case SEMOP:
339 err = sys_semtimedop(first, ptr, 339 err = sys_semtimedop(first, ptr,
340 (unsigned)second, NULL); 340 (unsigned int)second, NULL);
341 goto out; 341 goto out;
342 case SEMTIMEDOP: 342 case SEMTIMEDOP:
343 err = sys_semtimedop(first, ptr, (unsigned)second, 343 err = sys_semtimedop(first, ptr, (unsigned int)second,
344 (const struct timespec __user *) 344 (const struct timespec __user *)
345 (unsigned long) fifth); 345 (unsigned long) fifth);
346 goto out; 346 goto out;
diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c
index 7f41d40b7e6e..fa8e21abb5e0 100644
--- a/arch/sparc/kernel/sysfs.c
+++ b/arch/sparc/kernel/sysfs.c
@@ -1,4 +1,4 @@
1/* sysfs.c: Toplogy sysfs support code for sparc64. 1/* sysfs.c: Topology sysfs support code for sparc64.
2 * 2 *
3 * Copyright (C) 2007 David S. Miller <davem@davemloft.net> 3 * Copyright (C) 2007 David S. Miller <davem@davemloft.net>
4 */ 4 */
diff --git a/arch/sparc/kernel/unaligned_64.c b/arch/sparc/kernel/unaligned_64.c
index d89e97b374cf..9aacb9159262 100644
--- a/arch/sparc/kernel/unaligned_64.c
+++ b/arch/sparc/kernel/unaligned_64.c
@@ -209,8 +209,8 @@ static inline int do_int_store(int reg_num, int size, unsigned long *dst_addr,
209 if (size == 16) { 209 if (size == 16) {
210 size = 8; 210 size = 8;
211 zero = (((long)(reg_num ? 211 zero = (((long)(reg_num ?
212 (unsigned)fetch_reg(reg_num, regs) : 0)) << 32) | 212 (unsigned int)fetch_reg(reg_num, regs) : 0)) << 32) |
213 (unsigned)fetch_reg(reg_num + 1, regs); 213 (unsigned int)fetch_reg(reg_num + 1, regs);
214 } else if (reg_num) { 214 } else if (reg_num) {
215 src_val_p = fetch_reg_addr(reg_num, regs); 215 src_val_p = fetch_reg_addr(reg_num, regs);
216 } 216 }
diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c
index c399e7b3b035..b6c559cbd64d 100644
--- a/arch/sparc/mm/fault_32.c
+++ b/arch/sparc/mm/fault_32.c
@@ -303,10 +303,10 @@ no_context:
303 fixup = search_extables_range(regs->pc, &g2); 303 fixup = search_extables_range(regs->pc, &g2);
304 /* Values below 10 are reserved for other things */ 304 /* Values below 10 are reserved for other things */
305 if (fixup > 10) { 305 if (fixup > 10) {
306 extern const unsigned __memset_start[]; 306 extern const unsigned int __memset_start[];
307 extern const unsigned __memset_end[]; 307 extern const unsigned int __memset_end[];
308 extern const unsigned __csum_partial_copy_start[]; 308 extern const unsigned int __csum_partial_copy_start[];
309 extern const unsigned __csum_partial_copy_end[]; 309 extern const unsigned int __csum_partial_copy_end[];
310 310
311#ifdef DEBUG_EXCEPTIONS 311#ifdef DEBUG_EXCEPTIONS
312 printk("Exception: PC<%08lx> faddr<%08lx>\n", 312 printk("Exception: PC<%08lx> faddr<%08lx>\n",
diff --git a/arch/sparc/net/bpf_jit_comp.c b/arch/sparc/net/bpf_jit_comp.c
index 3e6e05a7c4c2..a6d9204a6a0b 100644
--- a/arch/sparc/net/bpf_jit_comp.c
+++ b/arch/sparc/net/bpf_jit_comp.c
@@ -351,7 +351,7 @@ do { *prog++ = BR_OPC | WDISP22(OFF); \
351 * 351 *
352 * Sometimes we need to emit a branch earlier in the code 352 * Sometimes we need to emit a branch earlier in the code
353 * sequence. And in these situations we adjust "destination" 353 * sequence. And in these situations we adjust "destination"
354 * to accomodate this difference. For example, if we needed 354 * to accommodate this difference. For example, if we needed
355 * to emit a branch (and it's delay slot) right before the 355 * to emit a branch (and it's delay slot) right before the
356 * final instruction emitted for a BPF opcode, we'd use 356 * final instruction emitted for a BPF opcode, we'd use
357 * "destination + 4" instead of just plain "destination" above. 357 * "destination + 4" instead of just plain "destination" above.