From: Daniel Lezcano Date: Tue, 7 Sep 2010 19:45:11 +0000 (+0200) Subject: UBUNTU: SAUCE: fix compilation warning when CONFIG_SECURITY is not set X-Git-Url: http://git.alex.org.uk UBUNTU: SAUCE: fix compilation warning when CONFIG_SECURITY is not set Function prototype differs when CONFIG_SECURITY is not set leading to a warning: include/linux/security.h: In function ‘security_task_free’: include/linux/security.h:2244: warning: no return statement in function returning non-void The patch that introduced this warning was Maverick commit: commit 2aec770a575b15cb1e43c2e16dff4f00a02a8c9a Author: Kees Cook Date: Mon Jun 28 22:34:04 2010 -0700 UBUNTU: SAUCE: security: create task_free security callback Acked-by: Tim Gardner Signed-off-by: Leann Ogasawara Signed-off-by: Daniel Lezcano --- diff --git a/include/linux/security.h b/include/linux/security.h index 78d64cc..f30ea53 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -2255,7 +2255,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)