From: Jeff Layton Date: Tue, 15 Jul 2014 16:59:36 +0000 (-0400) Subject: nfsd: silence sparse warning about accessing credentials X-Git-Tag: omap-for-v3.17/fixes-against-rc2~101^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae4b884fc6316b3190be19448cea24b020c1cad6;p=pandora-kernel.git nfsd: silence sparse warning about accessing credentials sparse says: fs/nfsd/auth.c:31:38: warning: incorrect type in argument 1 (different address spaces) fs/nfsd/auth.c:31:38: expected struct cred const *cred fs/nfsd/auth.c:31:38: got struct cred const [noderef] *real_cred Add a new accessor for the ->real_cred and use that to fetch the pointer. Accessing current->real_cred directly is actually quite safe since we know that they can't go away so this is mostly a cosmetic fixup to silence sparse. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed