From: Juergen Gross Date: Fri, 5 Dec 2014 12:28:04 +0000 (+0100) Subject: xen: introduce helper functions to do safe read and write accesses X-Git-Tag: omap-for-v3.19/fixes-rc1~69^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90fff3ea15a8fa6d2bd60cc0538d8ac33f14b692;p=pandora-kernel.git xen: introduce helper functions to do safe read and write accesses Introduce two helper functions to safely read and write unsigned long values from or to memory when the access may fault because the mapping is non-present or read-only. These helpers can be used instead of open coded uses of __get_user() and __put_user() avoiding the need to do casts to fix sparse warnings. Use the helpers in page.h and p2m.c. This will fix the sparse warnings when doing "make C=1". Signed-off-by: Juergen Gross Signed-off-by: David Vrabel --- Reading git-diff-tree failed