Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Browse files Browse the repository at this point in the history
Pull sparc fixes from David Miller:
 "Minor typing cleanup from Joe Perches, and some comment typo fixes
  from Adam Buchbinder"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
  sparc: Convert naked unsigned uses to unsigned int
  sparc: Fix misspellings in comments.
  • Loading branch information
Linus Torvalds committed Mar 28, 2016
2 parents ec3c073 + 9ef595d commit d4dc3b2
Show file tree
Hide file tree
Showing 23 changed files with 68 additions and 68 deletions.
8 changes: 4 additions & 4 deletions arch/sparc/include/asm/compat_signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

#ifdef CONFIG_COMPAT
struct __new_sigaction32 {
unsigned sa_handler;
unsigned int sa_handler;
unsigned int sa_flags;
unsigned sa_restorer; /* not used by Linux/SPARC yet */
unsigned int sa_restorer; /* not used by Linux/SPARC yet */
compat_sigset_t sa_mask;
};

struct __old_sigaction32 {
unsigned sa_handler;
unsigned int sa_handler;
compat_old_sigset_t sa_mask;
unsigned int sa_flags;
unsigned sa_restorer; /* not used by Linux/SPARC yet */
unsigned int sa_restorer; /* not used by Linux/SPARC yet */
};
#endif

Expand Down
32 changes: 16 additions & 16 deletions arch/sparc/include/asm/obio.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ static inline void bw_clear_intr_mask(int sbus_level, int mask)
"i" (ASI_M_CTL));
}

static inline unsigned bw_get_prof_limit(int cpu)
static inline unsigned int bw_get_prof_limit(int cpu)
{
unsigned limit;
unsigned int limit;

__asm__ __volatile__ ("lda [%1] %2, %0" :
"=r" (limit) :
Expand All @@ -128,17 +128,17 @@ static inline unsigned bw_get_prof_limit(int cpu)
return limit;
}

static inline void bw_set_prof_limit(int cpu, unsigned limit)
static inline void bw_set_prof_limit(int cpu, unsigned int limit)
{
__asm__ __volatile__ ("sta %0, [%1] %2" : :
"r" (limit),
"r" (CSR_BASE(cpu) + BW_PTIMER_LIMIT),
"i" (ASI_M_CTL));
}

static inline unsigned bw_get_ctrl(int cpu)
static inline unsigned int bw_get_ctrl(int cpu)
{
unsigned ctrl;
unsigned int ctrl;

__asm__ __volatile__ ("lda [%1] %2, %0" :
"=r" (ctrl) :
Expand All @@ -147,17 +147,17 @@ static inline unsigned bw_get_ctrl(int cpu)
return ctrl;
}

static inline void bw_set_ctrl(int cpu, unsigned ctrl)
static inline void bw_set_ctrl(int cpu, unsigned int ctrl)
{
__asm__ __volatile__ ("sta %0, [%1] %2" : :
"r" (ctrl),
"r" (CSR_BASE(cpu) + BW_CTRL),
"i" (ASI_M_CTL));
}

static inline unsigned cc_get_ipen(void)
static inline unsigned int cc_get_ipen(void)
{
unsigned pending;
unsigned int pending;

__asm__ __volatile__ ("lduha [%1] %2, %0" :
"=r" (pending) :
Expand All @@ -166,17 +166,17 @@ static inline unsigned cc_get_ipen(void)
return pending;
}

static inline void cc_set_iclr(unsigned clear)
static inline void cc_set_iclr(unsigned int clear)
{
__asm__ __volatile__ ("stha %0, [%1] %2" : :
"r" (clear),
"r" (CC_ICLR),
"i" (ASI_M_MXCC));
}

static inline unsigned cc_get_imsk(void)
static inline unsigned int cc_get_imsk(void)
{
unsigned mask;
unsigned int mask;

__asm__ __volatile__ ("lduha [%1] %2, %0" :
"=r" (mask) :
Expand All @@ -185,17 +185,17 @@ static inline unsigned cc_get_imsk(void)
return mask;
}

static inline void cc_set_imsk(unsigned mask)
static inline void cc_set_imsk(unsigned int mask)
{
__asm__ __volatile__ ("stha %0, [%1] %2" : :
"r" (mask),
"r" (CC_IMSK),
"i" (ASI_M_MXCC));
}

static inline unsigned cc_get_imsk_other(int cpuid)
static inline unsigned int cc_get_imsk_other(int cpuid)
{
unsigned mask;
unsigned int mask;

__asm__ __volatile__ ("lduha [%1] %2, %0" :
"=r" (mask) :
Expand All @@ -204,15 +204,15 @@ static inline unsigned cc_get_imsk_other(int cpuid)
return mask;
}

static inline void cc_set_imsk_other(int cpuid, unsigned mask)
static inline void cc_set_imsk_other(int cpuid, unsigned int mask)
{
__asm__ __volatile__ ("stha %0, [%1] %2" : :
"r" (mask),
"r" (ECSR_BASE(cpuid) | CC_IMSK),
"i" (ASI_M_CTL));
}

static inline void cc_set_igen(unsigned gen)
static inline void cc_set_igen(unsigned int gen)
{
__asm__ __volatile__ ("sta %0, [%1] %2" : :
"r" (gen),
Expand Down
10 changes: 5 additions & 5 deletions arch/sparc/include/asm/openprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ struct linux_dev_v0_funcs {
/* V2 and later prom device operations. */
struct linux_dev_v2_funcs {
phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */
char * (*v2_dumb_mem_alloc)(char *va, unsigned sz);
void (*v2_dumb_mem_free)(char *va, unsigned sz);
char * (*v2_dumb_mem_alloc)(char *va, unsigned int sz);
void (*v2_dumb_mem_free)(char *va, unsigned int sz);

/* To map devices into virtual I/O space. */
char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned paddr, unsigned sz);
void (*v2_dumb_munmap)(char *virta, unsigned size);
char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned int paddr, unsigned int sz);
void (*v2_dumb_munmap)(char *virta, unsigned int size);

int (*v2_dev_open)(char *devpath);
void (*v2_dev_close)(int d);
Expand All @@ -50,7 +50,7 @@ struct linux_dev_v2_funcs {
struct linux_mlist_v0 {
struct linux_mlist_v0 *theres_more;
unsigned int start_adr;
unsigned num_bytes;
unsigned int num_bytes;
};

struct linux_mem_v0 {
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ extern pgprot_t PAGE_KERNEL_LOCKED;
extern pgprot_t PAGE_COPY;
extern pgprot_t PAGE_SHARED;

/* XXX This uglyness is for the atyfb driver's sparc mmap() support. XXX */
/* XXX This ugliness is for the atyfb driver's sparc mmap() support. XXX */
extern unsigned long _PAGE_IE;
extern unsigned long _PAGE_E;
extern unsigned long _PAGE_CACHE;
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/include/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ unsigned long get_wchan(struct task_struct *task);
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP])

/* Please see the commentary in asm/backoff.h for a description of
* what these instructions are doing and how they have been choosen.
* what these instructions are doing and how they have been chosen.
* To make a long story short, we are trying to yield the current cpu
* strand during busy loops.
*/
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/include/asm/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct sigcontext32 {
int sigc_oswins; /* outstanding windows */

/* stack ptrs for each regwin buf */
unsigned sigc_spbuf[__SUNOS_MAXWIN];
unsigned int sigc_spbuf[__SUNOS_MAXWIN];

/* Windows to restore after signal */
struct reg_window32 sigc_wbuf[__SUNOS_MAXWIN];
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/include/asm/tsb.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end;
* page size in question. So for PMD mappings (which fall on
* bit 23, for 8MB per PMD) we must propagate bit 22 for a
* 4MB huge page. For huge PUDs (which fall on bit 33, for
* 8GB per PUD), we have to accomodate 256MB and 2GB huge
* 8GB per PUD), we have to accommodate 256MB and 2GB huge
* pages. So for those we propagate bits 32 to 28.
*/
#define KERN_PGTABLE_WALK(VADDR, REG1, REG2, FAIL_LABEL) \
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/include/uapi/asm/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#if defined(__sparc__) && defined(__arch64__)
/* 64 bit sparc */
struct stat {
unsigned st_dev;
unsigned int st_dev;
ino_t st_ino;
mode_t st_mode;
short st_nlink;
uid_t st_uid;
gid_t st_gid;
unsigned st_rdev;
unsigned int st_rdev;
off_t st_size;
time_t st_atime;
time_t st_mtime;
Expand Down
12 changes: 6 additions & 6 deletions arch/sparc/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@

#include "kernel.h"

static unsigned dir_class[] = {
static unsigned int dir_class[] = {
#include <asm-generic/audit_dir_write.h>
~0U
};

static unsigned read_class[] = {
static unsigned int read_class[] = {
#include <asm-generic/audit_read.h>
~0U
};

static unsigned write_class[] = {
static unsigned int write_class[] = {
#include <asm-generic/audit_write.h>
~0U
};

static unsigned chattr_class[] = {
static unsigned int chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~0U
};

static unsigned signal_class[] = {
static unsigned int signal_class[] = {
#include <asm-generic/audit_signal.h>
~0U
};
Expand All @@ -39,7 +39,7 @@ int audit_classify_arch(int arch)
return 0;
}

int audit_classify_syscall(int abi, unsigned syscall)
int audit_classify_syscall(int abi, unsigned int syscall)
{
#ifdef CONFIG_COMPAT
if (abi == AUDIT_ARCH_SPARC)
Expand Down
12 changes: 6 additions & 6 deletions arch/sparc/kernel/compat_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
#include <asm/unistd.h>
#include "kernel.h"

unsigned sparc32_dir_class[] = {
unsigned int sparc32_dir_class[] = {
#include <asm-generic/audit_dir_write.h>
~0U
};

unsigned sparc32_chattr_class[] = {
unsigned int sparc32_chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~0U
};

unsigned sparc32_write_class[] = {
unsigned int sparc32_write_class[] = {
#include <asm-generic/audit_write.h>
~0U
};

unsigned sparc32_read_class[] = {
unsigned int sparc32_read_class[] = {
#include <asm-generic/audit_read.h>
~0U
};

unsigned sparc32_signal_class[] = {
unsigned int sparc32_signal_class[] = {
#include <asm-generic/audit_signal.h>
~0U
};

int sparc32_classify_syscall(unsigned syscall)
int sparc32_classify_syscall(unsigned int syscall)
{
switch(syscall) {
case __NR_open:
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ flush_patch_exception:
kuw_patch1_7win: sll %o3, 6, %o3

/* No matter how much overhead this routine has in the worst
* case scenerio, it is several times better than taking the
* case scenario, it is several times better than taking the
* traps with the old method of just doing flush_user_windows().
*/
kill_user_windows:
Expand Down
6 changes: 3 additions & 3 deletions arch/sparc/kernel/ioport.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void __iomem *ioremap(unsigned long offset, unsigned long size)
EXPORT_SYMBOL(ioremap);

/*
* Comlimentary to ioremap().
* Complementary to ioremap().
*/
void iounmap(volatile void __iomem *virtual)
{
Expand Down Expand Up @@ -233,7 +233,7 @@ _sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz)
}

/*
* Comlimentary to _sparc_ioremap().
* Complementary to _sparc_ioremap().
*/
static void _sparc_free_io(struct resource *res)
{
Expand Down Expand Up @@ -532,7 +532,7 @@ static void pci32_unmap_page(struct device *dev, dma_addr_t ba, size_t size,
}

/* Map a set of buffers described by scatterlist in streaming
* mode for DMA. This is the scather-gather version of the
* mode for DMA. This is the scatter-gather version of the
* above pci_map_single interface. Here the scatter gather list
* elements are each tagged with the appropriate dma address
* and length. They are obtained via sg_dma_{address,length}(SG).
Expand Down
12 changes: 6 additions & 6 deletions arch/sparc/kernel/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ void do_signal32(struct pt_regs * regs);
asmlinkage int do_sys32_sigstack(u32 u_ssptr, u32 u_ossptr, unsigned long sp);

/* compat_audit.c */
extern unsigned sparc32_dir_class[];
extern unsigned sparc32_chattr_class[];
extern unsigned sparc32_write_class[];
extern unsigned sparc32_read_class[];
extern unsigned sparc32_signal_class[];
int sparc32_classify_syscall(unsigned syscall);
extern unsigned int sparc32_dir_class[];
extern unsigned int sparc32_chattr_class[];
extern unsigned int sparc32_write_class[];
extern unsigned int sparc32_read_class[];
extern unsigned int sparc32_signal_class[];
int sparc32_classify_syscall(unsigned int syscall);
#endif

#ifdef CONFIG_SPARC32
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/leon_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static struct irq_chip leon_irq = {

/*
* Build a LEON IRQ for the edge triggered LEON IRQ controller:
* Edge (normal) IRQ - handle_simple_irq, ack=DONT-CARE, never ack
* Edge (normal) IRQ - handle_simple_irq, ack=DON'T-CARE, never ack
* Level IRQ (PCI|Level-GPIO) - handle_fasteoi_irq, ack=1, ack after ISR
* Per-CPU Edge - handle_percpu_irq, ack=0
*/
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static void show_regwindow32(struct pt_regs *regs)
mm_segment_t old_fs;

__asm__ __volatile__ ("flushw");
rw = compat_ptr((unsigned)regs->u_regs[14]);
rw = compat_ptr((unsigned int)regs->u_regs[14]);
old_fs = get_fs();
set_fs (USER_DS);
if (copy_from_user (&r_w, rw, sizeof(r_w))) {
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ unsigned long cmdline_memory_size __initdata = 0;
unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */

static void
prom_console_write(struct console *con, const char *s, unsigned n)
prom_console_write(struct console *con, const char *s, unsigned int n)
{
prom_write(s, n);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct screen_info screen_info = {
};

static void
prom_console_write(struct console *con, const char *s, unsigned n)
prom_console_write(struct console *con, const char *s, unsigned int n)
{
prom_write(s, n);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/signal32.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void do_sigreturn32(struct pt_regs *regs)
compat_uptr_t fpu_save;
compat_uptr_t rwin_save;
unsigned int psr;
unsigned pc, npc;
unsigned int pc, npc;
sigset_t set;
compat_sigset_t seta;
int err, i;
Expand Down
Loading

0 comments on commit d4dc3b2

Please sign in to comment.