Re: [PATCH] audit: fix build error when disable audit

From: Gao feng
Date: Thu Dec 19 2013 - 20:39:27 EST


On 12/20/2013 09:19 AM, Richard Guy Briggs wrote:
> 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.
>

thank you Richard, btw, do you have plan to push these changes to the linux-next?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/