From: Shakil A Khan <shakilk1729@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, paulmcquad@gmail.com,
ionut.m.alexa@gmail.com, tglx@linutronix.de,
viro@zeniv.linux.org.uk, Shakil A Khan <shakilk1729@gmail.com>
Subject: [PATCH 3/3] linux.next: kernel/acct.c: Fix for ns(namespace) variable is used only when ACCT_VERSION is 3
Date: Mon, 1 Sep 2014 08:03:45 -0400 [thread overview]
Message-ID: <1409573025-52281-1-git-send-email-shakilk1729@gmail.com> (raw)
Signed-off-by: Shakil A Khan <shakilk1729@gmail.com>
---
kernel/acct.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/acct.c b/kernel/acct.c
index b4c667d..5f277f5 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -472,7 +472,9 @@ static void do_acct_process(struct bsd_acct_struct *acct)
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;
/*
--
1.7.1
reply other threads:[~2014-09-01 12:03 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=1409573025-52281-1-git-send-email-shakilk1729@gmail.com \
--to=shakilk1729@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ionut.m.alexa@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmcquad@gmail.com \
--cc=tglx@linutronix.de \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).