Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2c4798e authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Kyle McMartin
Browse files

[PARISC] sparse fixes



0/NULL, missing __user, missing __iomem, non-ANSI prototype.

Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 423c8ece
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -355,8 +355,8 @@ asmlinkage int sys_execve(struct pt_regs *regs)
	error = PTR_ERR(filename);
	error = PTR_ERR(filename);
	if (IS_ERR(filename))
	if (IS_ERR(filename))
		goto out;
		goto out;
	error = do_execve(filename, (char __user **) regs->gr[25],
	error = do_execve(filename, (char __user * __user *) regs->gr[25],
		(char __user **) regs->gr[24], regs);
		(char __user * __user *) regs->gr[24], regs);
	if (error == 0) {
	if (error == 0) {
		task_lock(current);
		task_lock(current);
		current->ptrace &= ~PT_DTRACE;
		current->ptrace &= ~PT_DTRACE;
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,6 +18,6 @@ int __init oprofile_arch_init(struct oprofile_operations * ops)
}
}




void oprofile_arch_exit()
void oprofile_arch_exit(void)
{
{
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -132,7 +132,7 @@ struct iosapic_irt {
struct vector_info {
struct vector_info {
	struct iosapic_info *iosapic;	/* I/O SAPIC this vector is on */
	struct iosapic_info *iosapic;	/* I/O SAPIC this vector is on */
	struct irt_entry *irte;		/* IRT entry */
	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 */
	u32	eoi_data;		/* IA64: ?       PA: swapped txn_data */
	int	txn_irq;		/* virtual IRQ number for processor */
	int	txn_irq;		/* virtual IRQ number for processor */
	ulong	txn_addr;		/* IA64: id_eid  PA: partial HPA */
	ulong	txn_addr;		/* IA64: id_eid  PA: partial HPA */
+1 −1
Original line number Original line Diff line number Diff line
@@ -980,7 +980,7 @@ LBA_PORT_IN(32, 0)
#define LBA_PORT_OUT(size, mask) \
#define LBA_PORT_OUT(size, mask) \
static void lba_pat_out##size (struct pci_hba_data *l, u16 addr, u##size val) \
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); \
	DBG_PORT("%s(0x%p, 0x%x, 0x%x)\n", __FUNCTION__, l, addr, val); \
	WRITE_REG##size(val, where); \
	WRITE_REG##size(val, where); \
	/* flush the I/O down to the elroy at least */ \
	/* flush the I/O down to the elroy at least */ \
+1 −1
Original line number Original line Diff line number Diff line
@@ -846,7 +846,7 @@ static void *sba_alloc_consistent(struct device *hwdev, size_t size,
	if (!hwdev) {
	if (!hwdev) {
		/* only support PCI */
		/* only support PCI */
		*dma_handle = 0;
		*dma_handle = 0;
		return 0;
		return NULL;
	}
	}


        ret = (void *) __get_free_pages(gfp, get_order(size));
        ret = (void *) __get_free_pages(gfp, get_order(size));