From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gao feng Subject: [PATCH] audit: fix build error when disable audit Date: Thu, 19 Dec 2013 10:34:29 +0800 Message-ID: <1387420469-27665-1-git-send-email-gaofeng@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-audit@redhat.com Cc: linux-kernel@vger.kernel.org, Gao feng List-Id: linux-audit@redhat.com kernel/capability.c: In function =E2=80=98SYSC_capset=E2=80=99: kernel/capability.c:280:2: warning: passing argument 1 of =E2=80=98audi= t_log_capset=E2=80=99 makes integer from pointer without a cast [enable= d by default] audit_log_capset(new, current_cred()); ^ In file included from kernel/capability.c:10:0: include/linux/audit.h:400:20: note: expected =E2=80=98pid_t=E2=80=99 bu= t argument is of type =E2=80=98struct cred *=E2=80=99 static inline void audit_log_capset(pid_t pid, const struct cred *new, ^ kernel/capability.c:280:2: error: too few arguments to function =E2=80=98= audit_log_capset=E2=80=99 audit_log_capset(new, current_cred()); ^ In file included from kernel/capability.c:10:0: include/linux/audit.h:400:20: note: declared here static inline void audit_log_capset(pid_t pid, const struct cred *new, ^ make[1]: *** [kernel/capability.o] Error 1 Signed-off-by: Gao feng --- include/linux/audit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/audit.h b/include/linux/audit.h index b4d5160..6976219 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -397,8 +397,8 @@ static inline int audit_log_bprm_fcaps(struct linux= _binprm *bprm, { return 0; } -static inline void audit_log_capset(pid_t pid, const struct cred *new, - const struct cred *old) +static inline void audit_log_capset(const struct cred *new, + const struct cred *old) { } static inline void audit_mmap_fd(int fd, int flags) { } --=20 1.8.3.1