Skip to content

Commit

Permalink
keys: kill the dummy key_replace_session_keyring()
Browse files Browse the repository at this point in the history
After the previouse change key_replace_session_keyring() becomes a nop.
Remove the dummy definition in key.h and update the callers in
arch/*/kernel/signal.c.

Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: David Howells <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Richard Kuo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Chris Zankel <[email protected]>
Cc: David Smith <[email protected]>
Cc: "Frank Ch. Eigler" <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Larry Woodman <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
oleg-nesterov authored and Al Viro committed May 24, 2012
1 parent 413cd3d commit dea649b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/linux/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ typedef uint32_t key_perm_t;

struct key;

#define key_replace_session_keyring() do { } while (0)

#ifdef CONFIG_KEYS

#undef KEY_DEBUGGING
Expand Down
2 changes: 0 additions & 2 deletions include/linux/tracehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ static inline void set_notify_resume(struct task_struct *task)
*/
static inline void tracehook_notify_resume(struct pt_regs *regs)
{
if (current->replacement_session_keyring)
key_replace_session_keyring();
/*
* The caller just cleared TIF_NOTIFY_RESUME. This barrier
* pairs with task_work_add()->set_notify_resume() after
Expand Down

0 comments on commit dea649b

Please sign in to comment.