diff options
| author | Andrew Morton <[email protected]> | 2008-04-02 20:04:52 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-02 22:28:20 +0000 |
| commit | 06f11f37aa84e83b48cdf36037c4414f5a83c13f (patch) | |
| tree | 013433fd26c382070b984aa519542ebbe951e3a5 /security/selinux/hooks.c | |
| parent | markers: use synchronize_sched() (diff) | |
| download | kernel-06f11f37aa84e83b48cdf36037c4414f5a83c13f.tar.gz kernel-06f11f37aa84e83b48cdf36037c4414f5a83c13f.zip | |
alpha: get_current(): don't add zero to current_thread_info()->task
A nasty compile error:
In file included from security/keys/internal.h:16,
from security/keys/sysctl.c:14:
include/linux/key-ui.h: In function 'key_permission':
include/linux/key-ui.h:51: error: invalid use of undefined type 'struct task_struct'
apparently the compiler has decided that it needs to know sizeof(task_struct)
so that it can add zero to a task_struct* (which is rather dumb of it).
Getting task_struct in scope in these deeply-nested headers is scary-looking,
so let's just remove the "+ 0".
Cc: David Howells <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
