]> Git Repo - linux.git/commit
CRED: Restore const to current_cred()
authorDavid Howells <[email protected]>
Mon, 8 Aug 2011 14:54:53 +0000 (15:54 +0100)
committerLinus Torvalds <[email protected]>
Mon, 8 Aug 2011 16:03:16 +0000 (09:03 -0700)
commit27e4e4362756a78b15e83ef104c8bbe257f40f90
treee94ce9e5540cc8e2ae9a06aa398bc16a364c29b2
parent322a8b034003c0d46d39af85bf24fee27b902f48
CRED: Restore const to current_cred()

Commit 3295514841c2 ("fix rcu annotations noise in cred.h") accidentally
dropped the const of current->cred inside current_cred() by the
insertion of a cast to deal with an RCU annotation loss warning from
sparce.

Use an appropriate RCU wrapper instead so as not to lose the const.

Signed-off-by: David Howells <[email protected]>
Reviewed-by: Paul E. McKenney <[email protected]>
cc: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/cred.h
This page took 0.053833 seconds and 4 git commands to generate.