[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAE9SfeNcWAeTt6Q+7our_c_TKDOL14VoAbiASjHLA8+orTMouQ@mail.gmail.com>
Date: Wed, 12 Nov 2014 15:55:05 +0000
From: Brian Haslett <knotwurk@...il.com>
To: linux-kernel@...r.kernel.org
Cc: trivial@...nel.org
Subject: PATCH kernel/acct.c to fix compiler warning
This is the warning:
kernel/acct.c: In function 'do_acct_process':
kernel/acct.c:475:24: warning: unused variable 'ns' [-Wunused-variable]
struct pid_namespace *ns = acct->ns;
and this is the patch..:
.
Signed-off-by: Brian P. Haslett <knotwurk@...il.com>
--- a/kernel/acct.c 2014-11-11 10:25:49.000000000 +0000
+++ b/kernel/acct.c 2014-11-11 10:25:40.000000000 +0000
@@ -472,7 +472,9 @@ static void do_acct_process(struct bsd_a
acct_t ac;
unsigned long flim;
const struct cred *orig_cred;
+#if ACCT_VERSION == 3
struct pid_namespace *ns = acct->ns;
+#endif
struct file *file = acct->file;
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists