Commit 6079e248 authored by Mika Kukkonen's avatar Mika Kukkonen Committed by Linus Torvalds

[PATCH] sparse: NULL vs 0 - the rest of it

parent c64c8daa
......@@ -54,7 +54,7 @@
#define INIT_SIGHAND(sighand) { \
.count = ATOMIC_INIT(1), \
.action = { {{0,}}, }, \
.action = { {{NULL,}}, }, \
.siglock = SPIN_LOCK_UNLOCKED, \
}
......
......@@ -80,7 +80,7 @@ void __init msg_init (void)
ipc_init_ids(&msg_ids,msg_ctlmni);
#ifdef CONFIG_PROC_FS
create_proc_read_entry("sysvipc/msg", 0, 0, sysvipc_msg_read_proc, NULL);
create_proc_read_entry("sysvipc/msg", 0, NULL, sysvipc_msg_read_proc, NULL);
#endif
}
......
......@@ -116,7 +116,7 @@ void __init sem_init (void)
ipc_init_ids(&sem_ids,sc_semmni);
#ifdef CONFIG_PROC_FS
create_proc_read_entry("sysvipc/sem", 0, 0, sysvipc_sem_read_proc, NULL);
create_proc_read_entry("sysvipc/sem", 0, NULL, sysvipc_sem_read_proc, NULL);
#endif
}
......
......@@ -60,7 +60,7 @@ void __init shm_init (void)
{
ipc_init_ids(&shm_ids, 1);
#ifdef CONFIG_PROC_FS
create_proc_read_entry("sysvipc/shm", 0, 0, sysvipc_shm_read_proc, NULL);
create_proc_read_entry("sysvipc/shm", 0, NULL, sysvipc_shm_read_proc, NULL);
#endif
}
......
......@@ -276,7 +276,7 @@ static void wake_futex(struct futex_q *q)
* The waiting task can free the futex_q as soon as this is written,
* without taking any locks. This must come last.
*/
q->lock_ptr = 0;
q->lock_ptr = NULL;
}
/*
......
......@@ -282,7 +282,7 @@ struct pm_dev *pm_find(pm_dev_t type, struct pm_dev *from)
return dev;
entry = entry->next;
}
return 0;
return NULL;
}
EXPORT_SYMBOL(pm_register);
......
......@@ -2021,7 +2021,7 @@ generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov,
err = written ? written : status;
out:
pagevec_lru_add(&lru_pvec);
current->backing_dev_info = 0;
current->backing_dev_info = NULL;
return err;
}
......
......@@ -740,7 +740,7 @@ static inline int try_to_unmap_file(struct page *page)
list_for_each_entry(vma, &mapping->i_mmap_nonlinear,
shared.vm_set.list) {
if (!(vma->vm_flags & VM_RESERVED))
vma->vm_private_data = 0;
vma->vm_private_data = NULL;
}
relock:
page_map_lock(page);
......
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