[PATCH] move capable() to capability.h
- Move capable() from sched.h to capability.h; - Use <linux/capability.h> where capable() is used (in include/, block/, ipc/, kernel/, a few drivers/, mm/, security/, & sound/; many more drivers/ to go) Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e16885c5ad
commit
c59ede7b78
41 changed files with 44 additions and 9 deletions
|
@ -1112,10 +1112,6 @@ static inline int sas_ss_flags(unsigned long sp)
|
|||
: on_sig_stack(sp) ? SS_ONSTACK : 0);
|
||||
}
|
||||
|
||||
|
||||
/* code is in security.c or kernel/sys.c if !SECURITY */
|
||||
extern int capable(int cap);
|
||||
|
||||
/*
|
||||
* Routines for handling mm_structs
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue