mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.6.13-rc1-mm1 audit_log_start() warning fix
@ 2005-07-01 20:43 Badari Pulavarty
  0 siblings, 0 replies; only message in thread
From: Badari Pulavarty @ 2005-07-01 20:43 UTC (permalink / raw)
  To: akpm, lkml

[-- 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-01 20:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 20:43 [PATCH] 2.6.13-rc1-mm1 audit_log_start() warning fix Badari Pulavarty

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®