From: H. Peter Anvin Date: Mon, 3 Feb 2014 01:57:28 +0000 (-0800) Subject: compat: Fix sparse address space warnings X-Git-Tag: v3.15-rc1~128^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dce44e03b0a3448ad11ac6c6e0cbe299e0400791;p=pandora-kernel.git 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 Cc: Toyo Abe Link: http://lkml.kernel.org/n/tip-507h7cq5e45eg6ygtykon3bf@git.kernel.org --- Reading git-diff-tree failed