From: Alexander Beregalov Date: Sun, 17 Aug 2008 01:34:20 +0000 (+0400) Subject: security.h: fix build failure X-Git-Tag: v2.6.27-rc4~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e186b57e7ede86aeb9db30e66315bde4e8b1815;p=linux-2.6-omap-h63xx.git security.h: fix build failure security.h: fix build failure include/linux/security.h: In function 'security_ptrace_traceme': include/linux/security.h:1760: error: 'parent' undeclared (first use in this function) Signed-off-by: Alexander Beregalov Tested-by: Ingo Molnar Signed-off-by: James Morris --- diff --git a/include/linux/security.h b/include/linux/security.h index 2ee5ecfb239..80c4d002864 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -1755,7 +1755,7 @@ static inline int security_ptrace_may_access(struct task_struct *child, return cap_ptrace_may_access(child, mode); } -static inline int security_ptrace_traceme(struct task_struct *child) +static inline int security_ptrace_traceme(struct task_struct *parent) { return cap_ptrace_traceme(parent); }