[PATCH] uml: sparse cleanups
misc sparse annotations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -28,7 +28,7 @@ struct pt_regs {
|
||||
union uml_pt_regs regs;
|
||||
};
|
||||
|
||||
#define EMPTY_REGS { regs : EMPTY_UML_PT_REGS }
|
||||
#define EMPTY_REGS { .regs = EMPTY_UML_PT_REGS }
|
||||
|
||||
#define PT_REGS_IP(r) UPT_IP(&(r)->regs)
|
||||
#define PT_REGS_SP(r) UPT_SP(&(r)->regs)
|
||||
|
@@ -27,14 +27,14 @@ struct thread_info {
|
||||
|
||||
#define INIT_THREAD_INFO(tsk) \
|
||||
{ \
|
||||
task: &tsk, \
|
||||
exec_domain: &default_exec_domain, \
|
||||
flags: 0, \
|
||||
cpu: 0, \
|
||||
preempt_count: 1, \
|
||||
addr_limit: KERNEL_DS, \
|
||||
restart_block: { \
|
||||
fn: do_no_restart_syscall, \
|
||||
.task = &tsk, \
|
||||
.exec_domain = &default_exec_domain, \
|
||||
.flags = 0, \
|
||||
.cpu = 0, \
|
||||
.preempt_count = 1, \
|
||||
.addr_limit = KERNEL_DS, \
|
||||
.restart_block = { \
|
||||
.fn = do_no_restart_syscall, \
|
||||
}, \
|
||||
}
|
||||
|
||||
|
@@ -57,7 +57,7 @@
|
||||
({ \
|
||||
const __typeof__((*(ptr))) __user *private_ptr = (ptr); \
|
||||
(access_ok(VERIFY_READ, private_ptr, sizeof(*private_ptr)) ? \
|
||||
__get_user(x, private_ptr) : ((x) = 0, -EFAULT)); \
|
||||
__get_user(x, private_ptr) : ((x) = (__typeof__(*ptr))0, -EFAULT)); \
|
||||
})
|
||||
|
||||
#define __put_user(x, ptr) \
|
||||
|
Reference in New Issue
Block a user