Commit c2c4798e04ef836b12f5df04e7d1a1710cb39301
Committed by
Kyle McMartin
1 parent
423c8ece29
Exists in
master
and in
4 other branches
[PARISC] sparse fixes
0/NULL, missing __user, missing __iomem, non-ANSI prototype. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Showing 5 changed files with 6 additions and 6 deletions Side-by-side Diff
arch/parisc/kernel/process.c
... | ... | @@ -355,8 +355,8 @@ |
355 | 355 | error = PTR_ERR(filename); |
356 | 356 | if (IS_ERR(filename)) |
357 | 357 | goto out; |
358 | - error = do_execve(filename, (char __user **) regs->gr[25], | |
359 | - (char __user **) regs->gr[24], regs); | |
358 | + error = do_execve(filename, (char __user * __user *) regs->gr[25], | |
359 | + (char __user * __user *) regs->gr[24], regs); | |
360 | 360 | if (error == 0) { |
361 | 361 | task_lock(current); |
362 | 362 | current->ptrace &= ~PT_DTRACE; |
arch/parisc/oprofile/init.c
drivers/parisc/iosapic_private.h
... | ... | @@ -132,7 +132,7 @@ |
132 | 132 | struct vector_info { |
133 | 133 | struct iosapic_info *iosapic; /* I/O SAPIC this vector is on */ |
134 | 134 | struct irt_entry *irte; /* IRT entry */ |
135 | - u32 *eoi_addr; /* precalculate EOI reg address */ | |
135 | + u32 __iomem *eoi_addr; /* precalculate EOI reg address */ | |
136 | 136 | u32 eoi_data; /* IA64: ? PA: swapped txn_data */ |
137 | 137 | int txn_irq; /* virtual IRQ number for processor */ |
138 | 138 | ulong txn_addr; /* IA64: id_eid PA: partial HPA */ |
drivers/parisc/lba_pci.c
... | ... | @@ -980,7 +980,7 @@ |
980 | 980 | #define LBA_PORT_OUT(size, mask) \ |
981 | 981 | static void lba_pat_out##size (struct pci_hba_data *l, u16 addr, u##size val) \ |
982 | 982 | { \ |
983 | - void *where = (void *) PIOP_TO_GMMIO(LBA_DEV(l), addr); \ | |
983 | + void __iomem *where = PIOP_TO_GMMIO(LBA_DEV(l), addr); \ | |
984 | 984 | DBG_PORT("%s(0x%p, 0x%x, 0x%x)\n", __FUNCTION__, l, addr, val); \ |
985 | 985 | WRITE_REG##size(val, where); \ |
986 | 986 | /* flush the I/O down to the elroy at least */ \ |