mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Badari Pulavarty <pbadari@yahoo.com>
To: akpm <akpm@osdl.org>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.6.13-rc1-mm1 audit_log_start() warning fix
Date: Fri, 1 Jul 2005 13:43:51 -0700 (PDT)	[thread overview]
Message-ID: <20050701204351.94386.qmail@web50713.mail.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

Hi Andrew,

audit_log_start() seems to take 3 arguments, but
its defined to take only 2 when AUDIT is turned
off. Simple patch to fix it.

security/selinux/avc.c:553:75: macro "audit_log_start"
passed 3 arguments, but takes just 2

Thanks,
Badari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 2444494241-audit-log-start-fix.patch --]
[-- Type: text/x-patch; name="audit-log-start-fix.patch", Size: 561 bytes --]

--- linux-2.6.13-rc1.org/include/linux/audit.h	2005-07-01 12:57:31.000000000 -0700
+++ linux-2.6.13-rc1/include/linux/audit.h	2005-07-01 13:24:21.000000000 -0700
@@ -286,7 +286,7 @@ extern void		    audit_log_lost(const ch
 extern struct semaphore audit_netlink_sem;
 #else
 #define audit_log(c,t,f,...) do { ; } while (0)
-#define audit_log_start(c,t) ({ NULL; })
+#define audit_log_start(c,g,t) ({ NULL; })
 #define audit_log_vformat(b,f,a) do { ; } while (0)
 #define audit_log_format(b,f,...) do { ; } while (0)
 #define audit_log_end(b) do { ; } while (0)

                 reply	other threads:[~2005-07-01 20:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050701204351.94386.qmail@web50713.mail.yahoo.com \
    --to=pbadari@yahoo.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®