]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PARISC] sparse fixes
authorMatthew Wilcox <matthew@wil.cx>
Thu, 26 Oct 2006 16:06:07 +0000 (10:06 -0600)
committerKyle McMartin <kyle@ubuntu.com>
Fri, 8 Dec 2006 05:34:33 +0000 (00:34 -0500)
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>
arch/parisc/kernel/process.c
arch/parisc/oprofile/init.c
drivers/parisc/iosapic_private.h
drivers/parisc/lba_pci.c
drivers/parisc/sba_iommu.c

index 2f9f9dfa66f7ba557d2a9158ffae6cfbe13a29dd..dfca014b49bafc2c2758a508f2396f2a0ebb752e 100644 (file)
@@ -355,8 +355,8 @@ asmlinkage int sys_execve(struct pt_regs *regs)
        error = PTR_ERR(filename);
        if (IS_ERR(filename))
                goto out;
-       error = do_execve(filename, (char __user **) regs->gr[25],
-               (char __user **) regs->gr[24], regs);
+       error = do_execve(filename, (char __user * __user *) regs->gr[25],
+               (char __user * __user *) regs->gr[24], regs);
        if (error == 0) {
                task_lock(current);
                current->ptrace &= ~PT_DTRACE;
index a5b898c4d0b02bc0b2b3417f51361d2050353d10..113f5139f5518e778f35f765180b28985dc6373a 100644 (file)
@@ -18,6 +18,6 @@ int __init oprofile_arch_init(struct oprofile_operations * ops)
 }
 
 
-void oprofile_arch_exit()
+void oprofile_arch_exit(void)
 {
 }
index 41e7ec2a44aa8f423627b3cc0143a5353be33f37..6e05e30a2450a052c9d1f4d0d460826a10514b52 100644 (file)
@@ -132,7 +132,7 @@ struct iosapic_irt {
 struct vector_info {
        struct iosapic_info *iosapic;   /* I/O SAPIC this vector is on */
        struct irt_entry *irte;         /* IRT entry */
-       u32     *eoi_addr;              /* precalculate EOI reg address */
+       u32 __iomem *eoi_addr;          /* precalculate EOI reg address */
        u32     eoi_data;               /* IA64: ?       PA: swapped txn_data */
        int     txn_irq;                /* virtual IRQ number for processor */
        ulong   txn_addr;               /* IA64: id_eid  PA: partial HPA */
index ba6769934c771718035f8ed35c2a99c89021afce..ad4a1a12a1ae37d142e00a4f8ea914452a0708a7 100644 (file)
@@ -980,7 +980,7 @@ LBA_PORT_IN(32, 0)
 #define LBA_PORT_OUT(size, mask) \
 static void lba_pat_out##size (struct pci_hba_data *l, u16 addr, u##size val) \
 { \
-       void *where = (void *) PIOP_TO_GMMIO(LBA_DEV(l), addr); \
+       void __iomem *where = PIOP_TO_GMMIO(LBA_DEV(l), addr); \
        DBG_PORT("%s(0x%p, 0x%x, 0x%x)\n", __FUNCTION__, l, addr, val); \
        WRITE_REG##size(val, where); \
        /* flush the I/O down to the elroy at least */ \
index f1e7ccd5475bb413888272112e1937d67e4d5f36..41abbed51ea7313eb2a2d21e2b323e141a1e251f 100644 (file)
@@ -846,7 +846,7 @@ static void *sba_alloc_consistent(struct device *hwdev, size_t size,
        if (!hwdev) {
                /* only support PCI */
                *dma_handle = 0;
-               return 0;
+               return NULL;
        }
 
         ret = (void *) __get_free_pages(gfp, get_order(size));