aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MAINTAINERS4
-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
-rw-r--r--arch/tile/include/hv/drv_mpipe_intf.h26
-rw-r--r--arch/tile/kernel/kgdb.c16
-rw-r--r--arch/tile/kernel/pci_gx.c2
-rw-r--r--drivers/hwmon/max1111.c6
-rw-r--r--drivers/ide/icside.c2
-rw-r--r--drivers/ide/palm_bk3710.c2
30 files changed, 101 insertions, 93 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 03e00c7c88eb..378ebfff2d1f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -11137,8 +11137,8 @@ F: include/uapi/linux/tipc*.h
11137F: net/tipc/ 11137F: net/tipc/
11138 11138
11139TILE ARCHITECTURE 11139TILE ARCHITECTURE
11140M: Chris Metcalf <cmetcalf@ezchip.com> 11140M: Chris Metcalf <cmetcalf@mellanox.com>
11141W: http://www.ezchip.com/scm/ 11141W: http://www.mellanox.com/repository/solutions/tile-scm/
11142T: git git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git 11142T: git git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git
11143S: Supported 11143S: Supported
11144F: arch/tile/ 11144F: arch/tile/
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.
diff --git a/arch/tile/include/hv/drv_mpipe_intf.h b/arch/tile/include/hv/drv_mpipe_intf.h
index c97e416dd963..ff7f50f970a5 100644
--- a/arch/tile/include/hv/drv_mpipe_intf.h
+++ b/arch/tile/include/hv/drv_mpipe_intf.h
@@ -211,7 +211,7 @@ _gxio_mpipe_link_mac_t;
211 * request shared data permission on the same link. 211 * request shared data permission on the same link.
212 * 212 *
213 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, 213 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA,
214 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() 214 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open()
215 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. 215 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed.
216 */ 216 */
217#define GXIO_MPIPE_LINK_DATA 0x00000001UL 217#define GXIO_MPIPE_LINK_DATA 0x00000001UL
@@ -219,7 +219,7 @@ _gxio_mpipe_link_mac_t;
219/** Do not request data permission on the specified link. 219/** Do not request data permission on the specified link.
220 * 220 *
221 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, 221 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA,
222 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() 222 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open()
223 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. 223 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed.
224 */ 224 */
225#define GXIO_MPIPE_LINK_NO_DATA 0x00000002UL 225#define GXIO_MPIPE_LINK_NO_DATA 0x00000002UL
@@ -230,7 +230,7 @@ _gxio_mpipe_link_mac_t;
230 * data permission on it, this open will fail. 230 * data permission on it, this open will fail.
231 * 231 *
232 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA, 232 * No more than one of ::GXIO_MPIPE_LINK_DATA, ::GXIO_MPIPE_LINK_NO_DATA,
233 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specifed in a gxio_mpipe_link_open() 233 * or ::GXIO_MPIPE_LINK_EXCL_DATA may be specified in a gxio_mpipe_link_open()
234 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed. 234 * call. If none are specified, ::GXIO_MPIPE_LINK_DATA is assumed.
235 */ 235 */
236#define GXIO_MPIPE_LINK_EXCL_DATA 0x00000004UL 236#define GXIO_MPIPE_LINK_EXCL_DATA 0x00000004UL
@@ -241,7 +241,7 @@ _gxio_mpipe_link_mac_t;
241 * permission on the same link. 241 * permission on the same link.
242 * 242 *
243 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, 243 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS,
244 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() 244 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open()
245 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. 245 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed.
246 */ 246 */
247#define GXIO_MPIPE_LINK_STATS 0x00000008UL 247#define GXIO_MPIPE_LINK_STATS 0x00000008UL
@@ -249,7 +249,7 @@ _gxio_mpipe_link_mac_t;
249/** Do not request stats permission on the specified link. 249/** Do not request stats permission on the specified link.
250 * 250 *
251 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, 251 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS,
252 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() 252 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open()
253 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. 253 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed.
254 */ 254 */
255#define GXIO_MPIPE_LINK_NO_STATS 0x00000010UL 255#define GXIO_MPIPE_LINK_NO_STATS 0x00000010UL
@@ -267,7 +267,7 @@ _gxio_mpipe_link_mac_t;
267 * reset by other statistics programs. 267 * reset by other statistics programs.
268 * 268 *
269 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS, 269 * No more than one of ::GXIO_MPIPE_LINK_STATS, ::GXIO_MPIPE_LINK_NO_STATS,
270 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specifed in a gxio_mpipe_link_open() 270 * or ::GXIO_MPIPE_LINK_EXCL_STATS may be specified in a gxio_mpipe_link_open()
271 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed. 271 * call. If none are specified, ::GXIO_MPIPE_LINK_STATS is assumed.
272 */ 272 */
273#define GXIO_MPIPE_LINK_EXCL_STATS 0x00000020UL 273#define GXIO_MPIPE_LINK_EXCL_STATS 0x00000020UL
@@ -278,7 +278,7 @@ _gxio_mpipe_link_mac_t;
278 * permission on the same link. 278 * permission on the same link.
279 * 279 *
280 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, 280 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL,
281 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() 281 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open()
282 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. 282 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed.
283 */ 283 */
284#define GXIO_MPIPE_LINK_CTL 0x00000040UL 284#define GXIO_MPIPE_LINK_CTL 0x00000040UL
@@ -286,7 +286,7 @@ _gxio_mpipe_link_mac_t;
286/** Do not request control permission on the specified link. 286/** Do not request control permission on the specified link.
287 * 287 *
288 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, 288 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL,
289 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() 289 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open()
290 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. 290 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed.
291 */ 291 */
292#define GXIO_MPIPE_LINK_NO_CTL 0x00000080UL 292#define GXIO_MPIPE_LINK_NO_CTL 0x00000080UL
@@ -301,7 +301,7 @@ _gxio_mpipe_link_mac_t;
301 * it prevents programs like mpipe-link from configuring the link. 301 * it prevents programs like mpipe-link from configuring the link.
302 * 302 *
303 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL, 303 * No more than one of ::GXIO_MPIPE_LINK_CTL, ::GXIO_MPIPE_LINK_NO_CTL,
304 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specifed in a gxio_mpipe_link_open() 304 * or ::GXIO_MPIPE_LINK_EXCL_CTL may be specified in a gxio_mpipe_link_open()
305 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed. 305 * call. If none are specified, ::GXIO_MPIPE_LINK_CTL is assumed.
306 */ 306 */
307#define GXIO_MPIPE_LINK_EXCL_CTL 0x00000100UL 307#define GXIO_MPIPE_LINK_EXCL_CTL 0x00000100UL
@@ -311,7 +311,7 @@ _gxio_mpipe_link_mac_t;
311 * change the desired state of the link when it is closed or the process 311 * change the desired state of the link when it is closed or the process
312 * exits. No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, 312 * exits. No more than one of ::GXIO_MPIPE_LINK_AUTO_UP,
313 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or 313 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or
314 * ::GXIO_MPIPE_LINK_AUTO_NONE may be specifed in a gxio_mpipe_link_open() 314 * ::GXIO_MPIPE_LINK_AUTO_NONE may be specified in a gxio_mpipe_link_open()
315 * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. 315 * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed.
316 */ 316 */
317#define GXIO_MPIPE_LINK_AUTO_UP 0x00000200UL 317#define GXIO_MPIPE_LINK_AUTO_UP 0x00000200UL
@@ -322,7 +322,7 @@ _gxio_mpipe_link_mac_t;
322 * open, set the desired state of the link to down. No more than one of 322 * open, set the desired state of the link to down. No more than one of
323 * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, 323 * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN,
324 * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be 324 * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be
325 * specifed in a gxio_mpipe_link_open() call. If none are specified, 325 * specified in a gxio_mpipe_link_open() call. If none are specified,
326 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. 326 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed.
327 */ 327 */
328#define GXIO_MPIPE_LINK_AUTO_UPDOWN 0x00000400UL 328#define GXIO_MPIPE_LINK_AUTO_UPDOWN 0x00000400UL
@@ -332,7 +332,7 @@ _gxio_mpipe_link_mac_t;
332 * process has the link open, set the desired state of the link to down. 332 * process has the link open, set the desired state of the link to down.
333 * No more than one of ::GXIO_MPIPE_LINK_AUTO_UP, 333 * No more than one of ::GXIO_MPIPE_LINK_AUTO_UP,
334 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or 334 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN, ::GXIO_MPIPE_LINK_AUTO_DOWN, or
335 * ::GXIO_MPIPE_LINK_AUTO_NONE may be specifed in a gxio_mpipe_link_open() 335 * ::GXIO_MPIPE_LINK_AUTO_NONE may be specified in a gxio_mpipe_link_open()
336 * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. 336 * call. If none are specified, ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed.
337 */ 337 */
338#define GXIO_MPIPE_LINK_AUTO_DOWN 0x00000800UL 338#define GXIO_MPIPE_LINK_AUTO_DOWN 0x00000800UL
@@ -342,7 +342,7 @@ _gxio_mpipe_link_mac_t;
342 * closed or the process exits. No more than one of 342 * closed or the process exits. No more than one of
343 * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN, 343 * ::GXIO_MPIPE_LINK_AUTO_UP, ::GXIO_MPIPE_LINK_AUTO_UPDOWN,
344 * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be 344 * ::GXIO_MPIPE_LINK_AUTO_DOWN, or ::GXIO_MPIPE_LINK_AUTO_NONE may be
345 * specifed in a gxio_mpipe_link_open() call. If none are specified, 345 * specified in a gxio_mpipe_link_open() call. If none are specified,
346 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed. 346 * ::GXIO_MPIPE_LINK_AUTO_UPDOWN is assumed.
347 */ 347 */
348#define GXIO_MPIPE_LINK_AUTO_NONE 0x00001000UL 348#define GXIO_MPIPE_LINK_AUTO_NONE 0x00001000UL
diff --git a/arch/tile/kernel/kgdb.c b/arch/tile/kernel/kgdb.c
index a506c2c28943..9247d6b562f4 100644
--- a/arch/tile/kernel/kgdb.c
+++ b/arch/tile/kernel/kgdb.c
@@ -126,15 +126,15 @@ void
126sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) 126sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task)
127{ 127{
128 struct pt_regs *thread_regs; 128 struct pt_regs *thread_regs;
129 const int NGPRS = TREG_LAST_GPR + 1;
129 130
130 if (task == NULL) 131 if (task == NULL)
131 return; 132 return;
132 133
133 /* Initialize to zero. */
134 memset(gdb_regs, 0, NUMREGBYTES);
135
136 thread_regs = task_pt_regs(task); 134 thread_regs = task_pt_regs(task);
137 memcpy(gdb_regs, thread_regs, TREG_LAST_GPR * sizeof(unsigned long)); 135 memcpy(gdb_regs, thread_regs, NGPRS * sizeof(unsigned long));
136 memset(&gdb_regs[NGPRS], 0,
137 (TILEGX_PC_REGNUM - NGPRS) * sizeof(unsigned long));
138 gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; 138 gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc;
139 gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum; 139 gdb_regs[TILEGX_FAULTNUM_REGNUM] = thread_regs->faultnum;
140} 140}
@@ -433,9 +433,9 @@ int kgdb_arch_handle_exception(int vector, int signo, int err_code,
433struct kgdb_arch arch_kgdb_ops; 433struct kgdb_arch arch_kgdb_ops;
434 434
435/* 435/*
436 * kgdb_arch_init - Perform any architecture specific initalization. 436 * kgdb_arch_init - Perform any architecture specific initialization.
437 * 437 *
438 * This function will handle the initalization of any architecture 438 * This function will handle the initialization of any architecture
439 * specific callbacks. 439 * specific callbacks.
440 */ 440 */
441int kgdb_arch_init(void) 441int kgdb_arch_init(void)
@@ -447,9 +447,9 @@ int kgdb_arch_init(void)
447} 447}
448 448
449/* 449/*
450 * kgdb_arch_exit - Perform any architecture specific uninitalization. 450 * kgdb_arch_exit - Perform any architecture specific uninitialization.
451 * 451 *
452 * This function will handle the uninitalization of any architecture 452 * This function will handle the uninitialization of any architecture
453 * specific callbacks, for dynamic registration and unregistration. 453 * specific callbacks, for dynamic registration and unregistration.
454 */ 454 */
455void kgdb_arch_exit(void) 455void kgdb_arch_exit(void)
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c
index 4c017d0d2de8..aa2b44cd8fd3 100644
--- a/arch/tile/kernel/pci_gx.c
+++ b/arch/tile/kernel/pci_gx.c
@@ -1326,7 +1326,7 @@ invalid_device:
1326 1326
1327 1327
1328/* 1328/*
1329 * See tile_cfg_read() for relevent comments. 1329 * See tile_cfg_read() for relevant comments.
1330 * Note that "val" is the value to write, not a pointer to that value. 1330 * Note that "val" is the value to write, not a pointer to that value.
1331 */ 1331 */
1332static int tile_cfg_write(struct pci_bus *bus, unsigned int devfn, int offset, 1332static int tile_cfg_write(struct pci_bus *bus, unsigned int devfn, int offset,
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c
index 36544c4f653c..303d0c9df907 100644
--- a/drivers/hwmon/max1111.c
+++ b/drivers/hwmon/max1111.c
@@ -85,6 +85,9 @@ static struct max1111_data *the_max1111;
85 85
86int max1111_read_channel(int channel) 86int max1111_read_channel(int channel)
87{ 87{
88 if (!the_max1111 || !the_max1111->spi)
89 return -ENODEV;
90
88 return max1111_read(&the_max1111->spi->dev, channel); 91 return max1111_read(&the_max1111->spi->dev, channel);
89} 92}
90EXPORT_SYMBOL(max1111_read_channel); 93EXPORT_SYMBOL(max1111_read_channel);
@@ -258,6 +261,9 @@ static int max1111_remove(struct spi_device *spi)
258{ 261{
259 struct max1111_data *data = spi_get_drvdata(spi); 262 struct max1111_data *data = spi_get_drvdata(spi);
260 263
264#ifdef CONFIG_SHARPSL_PM
265 the_max1111 = NULL;
266#endif
261 hwmon_device_unregister(data->hwmon_dev); 267 hwmon_device_unregister(data->hwmon_dev);
262 sysfs_remove_group(&spi->dev.kobj, &max1110_attr_group); 268 sysfs_remove_group(&spi->dev.kobj, &max1110_attr_group);
263 sysfs_remove_group(&spi->dev.kobj, &max1111_attr_group); 269 sysfs_remove_group(&spi->dev.kobj, &max1111_attr_group);
diff --git a/drivers/ide/icside.c b/drivers/ide/icside.c
index 9f0a48e39b8a..80e933b296f6 100644
--- a/drivers/ide/icside.c
+++ b/drivers/ide/icside.c
@@ -451,7 +451,7 @@ err_free:
451 return ret; 451 return ret;
452} 452}
453 453
454static const struct ide_port_info icside_v6_port_info __initconst = { 454static const struct ide_port_info icside_v6_port_info = {
455 .init_dma = icside_dma_off_init, 455 .init_dma = icside_dma_off_init,
456 .port_ops = &icside_v6_no_dma_port_ops, 456 .port_ops = &icside_v6_no_dma_port_ops,
457 .host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO, 457 .host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,
diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c
index 8012e43bf8f6..46427ea01753 100644
--- a/drivers/ide/palm_bk3710.c
+++ b/drivers/ide/palm_bk3710.c
@@ -325,6 +325,8 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
325 325
326 clk_enable(clk); 326 clk_enable(clk);
327 rate = clk_get_rate(clk); 327 rate = clk_get_rate(clk);
328 if (!rate)
329 return -EINVAL;
328 330
329 /* NOTE: round *down* to meet minimum timings; we count in clocks */ 331 /* NOTE: round *down* to meet minimum timings; we count in clocks */
330 ideclk_period = 1000000000UL / rate; 332 ideclk_period = 1000000000UL / rate;