mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] audit: Fix compile time warning on kernel/auditsc.c
@ 2009-01-23 19:50 Rakib Mullick
  2009-01-25  3:18 ` Valdis.Kletnieks
  0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2009-01-23 19:50 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar, Andrew Morton

 Impact: Fix compile time warning.

The function audit_set_auditable called when CONFIG_AUDIT_TREE is set.
When CONFIG_AUDIT_TREE is not set then it might be unused, which
generates the following warning. Making audit_set_auditable function
inline fixes this problem. If anything else please notice.

CC      kernel/auditsc.o
kernel/auditsc.c:745: warning: 'audit_set_auditable' defined but not used

Thanks.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>

--- linux-2.6-orig/kernel/auditsc.c	2009-01-23 18:28:45.000000000 +0600
+++ linux-2.6/kernel/auditsc.c	2009-01-23 22:31:34.145406088 +0600
@@ -741,7 +741,7 @@ void audit_filter_inodes(struct task_str
 	rcu_read_unlock();
 }

-static void audit_set_auditable(struct audit_context *ctx)
+static inline void audit_set_auditable(struct audit_context *ctx)
 {
 	if (!ctx->prio) {
 		ctx->prio = 1;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-28  1:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-23 19:50 [PATCH] audit: Fix compile time warning on kernel/auditsc.c Rakib Mullick
2009-01-25  3:18 ` Valdis.Kletnieks
2009-01-25  6:01   ` Rakib Mullick
2009-01-26 13:38     ` Ingo Molnar
2009-01-28  1:18       ` Andrew Morton

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®