[PATCH] Compilation warning when CONFIG_SECURITY is not set
Daniel Lezcano
daniel.lezcano at free.fr
Sat Sep 4 08:49:19 UTC 2010
Function prototype differs when CONFIG_SECURITY is not set leading to
a warning.
Signed-off-by: Daniel Lezcano <daniel.lezcano at free.fr>
---
include/linux/security.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/security.h b/include/linux/security.h
index d7d65e0..a380eed 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -2240,7 +2240,7 @@ static inline int security_task_create(unsigned long clone_flags)
return 0;
}
-static inline int security_task_free(struct task_struct *task)
+static inline void security_task_free(struct task_struct *task)
{ }
static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
--
1.7.0.4
More information about the kernel-team
mailing list