]> git.baikalelectronics.ru Git - kernel.git/commit
compat: Fix sparse address space warnings
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 3 Feb 2014 01:57:28 +0000 (17:57 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 3 Feb 2014 02:00:29 +0000 (18:00 -0800)
commitd0ce5cceaa4b9be3d7f5f65d880084cd02129ef8
treea5ba20404d5159a7cb00d3b8e448ec17f50322f3
parentf5230605673c2083dd406778f3b2a1f3f3a0829c
compat: Fix sparse address space warnings

In compat_sys_old_getrlimit() we pass a kernel pointer to
sys_old_getrlimit() inside a set_fs() bracket.  This is okay, so we
can safely cast the affected pointer to __user.

In compat_clock_nanosleep_restart(), the variable "rmtp" holds a user
pointer.  Annotate it as such.

Both of these warnings are ancient, but were reported by Fengguang
Wu's test system due to other changes.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Toyo Abe <toyoa@mvista.com>
Link: http://lkml.kernel.org/n/tip-507h7cq5e45eg6ygtykon3bf@git.kernel.org
kernel/compat.c