Commit 3e13d6b5 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: alpha NULL noise removal

parent 0bc20408
......@@ -361,7 +361,7 @@ init_irq_proc (void)
int i;
/* create /proc/irq */
root_irq_dir = proc_mkdir("irq", 0);
root_irq_dir = proc_mkdir("irq", NULL);
#ifdef CONFIG_SMP
/* create /proc/irq/prof_cpu_mask */
......
......@@ -762,7 +762,7 @@ osf_setsysinfo(unsigned long op, void __user *buffer, unsigned long nbytes,
info.si_signo = SIGFPE;
info.si_errno = 0;
info.si_code = si_code;
info.si_addr = 0; /* FIXME */
info.si_addr = NULL; /* FIXME */
send_sig_info(SIGFPE, &info, current);
}
......@@ -956,7 +956,7 @@ osf_utimes(char __user *filename, struct timeval32 __user *tvs)
return -EFAULT;
}
return do_utimes(filename, tvs ? ktvs : 0);
return do_utimes(filename, tvs ? ktvs : NULL);
}
#define MAX_SELECT_SECONDS \
......
......@@ -189,7 +189,7 @@ EXPORT_SYMBOL(machine_power_off);
void
show_regs(struct pt_regs *regs)
{
dik_show_regs(regs, 0);
dik_show_regs(regs, NULL);
}
/*
......
......@@ -996,7 +996,7 @@ static SMC37c669_CONFIG_REGS *SMC37c669 __initdata = NULL;
** and standard ISA IRQs.
**
*/
static SMC37c669_IRQ_TRANSLATION_ENTRY *SMC37c669_irq_table __initdata = 0;
static SMC37c669_IRQ_TRANSLATION_ENTRY *SMC37c669_irq_table __initdata;
/*
** The following definition is for the default IRQ
......@@ -1045,7 +1045,7 @@ static SMC37c669_IRQ_TRANSLATION_ENTRY *SMC37c669_irq_tables[] __initdata =
** ISA DMA channels.
**
*/
static SMC37c669_DRQ_TRANSLATION_ENTRY *SMC37c669_drq_table __initdata = 0;
static SMC37c669_DRQ_TRANSLATION_ENTRY *SMC37c669_drq_table __initdata;
/*
** The following definition is the default DRQ
......
......@@ -864,7 +864,7 @@ smp_call_function_on_cpu (void (*func) (void *info), void *info, int retry,
/* We either got one or timed out -- clear the lock. */
mb();
smp_call_function_data = 0;
smp_call_function_data = NULL;
/*
* If after both the initial and long timeout periods we still don't
......
......@@ -223,7 +223,7 @@ do_entArith(unsigned long summary, unsigned long write_mask,
if (si_code == 0)
return;
}
die_if_kernel("Arithmetic fault", regs, 0, 0);
die_if_kernel("Arithmetic fault", regs, 0, NULL);
info.si_signo = SIGFPE;
info.si_errno = 0;
......@@ -247,7 +247,7 @@ do_entIF(unsigned long type, struct pt_regs *regs)
data[0]);
}
die_if_kernel((type == 1 ? "Kernel Bug" : "Instruction fault"),
regs, type, 0);
regs, type, NULL);
}
switch (type) {
......@@ -410,7 +410,7 @@ do_entDbg(struct pt_regs *regs)
{
siginfo_t info;
die_if_kernel("Instruction fault", regs, 0, 0);
die_if_kernel("Instruction fault", regs, 0, NULL);
info.si_signo = SIGILL;
info.si_errno = 0;
......
......@@ -66,7 +66,7 @@ pte_alloc_one(struct mm_struct *mm, unsigned long addr)
pte_t *pte = pte_alloc_one_kernel(mm, addr);
if (pte)
return virt_to_page(pte);
return 0;
return NULL;
}
static inline void
......
......@@ -26,9 +26,9 @@ typedef struct {
} spinlock_t;
#ifdef CONFIG_DEBUG_SPINLOCK
#define SPIN_LOCK_UNLOCKED (spinlock_t) {0, -1, 0, 0, 0, 0}
#define SPIN_LOCK_UNLOCKED (spinlock_t) {0, -1, 0, NULL, NULL, NULL}
#define spin_lock_init(x) \
((x)->lock = 0, (x)->on_cpu = -1, (x)->previous = 0, (x)->task = 0)
((x)->lock = 0, (x)->on_cpu = -1, (x)->previous = NULL, (x)->task = NULL)
#else
#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
#define spin_lock_init(x) ((x)->lock = 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment