From: Amy Griffis Subject: [PATCH git] fix warning for !CONFIG_AUDITSYSCALL Date: Thu, 8 Jun 2006 19:29:21 -0400 Message-ID: <20060608232921.GB5145@zk3.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k58NTZuX026182 for ; Thu, 8 Jun 2006 19:29:35 -0400 Received: from palrel12.hp.com (palrel12.hp.com [156.153.255.237]) by mx3.redhat.com (8.13.1/8.13.1) with ESMTP id k58NTSJl022687 for ; Thu, 8 Jun 2006 19:29:28 -0400 Received: from cacrelint01.ptp.hp.com (cacrelint01.ptp.hp.com [15.1.29.21]) by palrel12.hp.com (Postfix) with ESMTP id C0AD13461F for ; Thu, 8 Jun 2006 16:29:22 -0700 (PDT) Received: from dill.zko.hp.com (dill.zko.hp.com [16.116.96.242]) by cacrelint01.ptp.hp.com (Postfix) with ESMTP id 834EC340A7 for ; Thu, 8 Jun 2006 16:29:22 -0700 (PDT) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com kernel/audit.c: In function `audit_init': kernel/audit.c:693: warning: unused variable `i' This fix applies to lspp.b18 commit 74457481a11b6283cecdfbaa6ec644e2edc1c8ef "updated filesystem auditing patches..." Signed-off-by: Amy Griffis --- kernel/audit.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 237e71cf9daa9b8f7651550a3da6bf7fb6eb8c0e diff --git a/kernel/audit.c b/kernel/audit.c index c12e2ae..0fbf1c1 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -690,7 +690,9 @@ #endif /* Initialize audit support at boot time. */ static int __init audit_init(void) { +#ifdef CONFIG_AUDITSYSCALL int i; +#endif printk(KERN_INFO "audit: initializing netlink socket (%s)\n", audit_default ? "enabled" : "disabled"); -- 1.3.0