From: Al Viro Date: Sun, 7 Aug 2011 17:55:11 +0000 (+0100) Subject: fix rcu annotations noise in cred.h X-Git-Tag: v3.1-rc1~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3295514841c2112d94451ba5deaf54f5afb78ea9;p=pandora-kernel.git fix rcu annotations noise in cred.h task->cred is declared as __rcu, and access to other tasks' ->cred is, indeed, protected. Access to current->cred does not need rcu_dereference() at all, since only the task itself can change its ->cred. sparse, of course, has no way of knowing that... Add force-cast in current_cred(), make current_fsuid() et.al. use it. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed