From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756799Ab3LTBUJ (ORCPT ); Thu, 19 Dec 2013 20:20:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61338 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755598Ab3LTBUI (ORCPT ); Thu, 19 Dec 2013 20:20:08 -0500 Date: Thu, 19 Dec 2013 20:19:56 -0500 From: Richard Guy Briggs To: Gao feng Cc: linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] audit: fix build error when disable audit Message-ID: <20131220011956.GA14944@madcap2.tricolour.ca> References: <1387420469-27665-1-git-send-email-gaofeng@cn.fujitsu.com> <52B25CA8.8090806@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <52B25CA8.8090806@cn.fujitsu.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/12/19, Gao feng wrote: > On 12/19/2013 10:34 AM, Gao feng wrote: > > kernel/capability.c: In function ‘SYSC_capset’: > > kernel/capability.c:280:2: warning: passing argument 1 of ‘audit_log_capset’ makes integer from pointer without a cast [enabled 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 ‘pid_t’ but argument is of type ‘struct cred *’ > > static inline void audit_log_capset(pid_t pid, const struct cred *new, > > ^ > > kernel/capability.c:280:2: error: too few arguments to function ‘audit_log_capset’ > > 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 > > BTW, bug introduced by commmit 26b81eb408c411d86c7cc93278fb88fbcd785f65 > audit: Simplify and correct audit_log_capset Yup, found it. Thanks for the patch. Since it isn't upstream yet, I may merge it and rebase for linux-next. > -- > Linux-audit mailing list > Linux-audit@redhat.com > https://www.redhat.com/mailman/listinfo/linux-audit - RGB -- Richard Guy Briggs Senior Software Engineer, Kernel Security, AMER ENG Base Operating Systems, Red Hat Remote, Ottawa, Canada Voice: +1.647.777.2635, Internal: (81) 32635, Alt: +1.613.693.0684x3545