linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: akpm@linux-foundation.org
Cc: Chris Mason <clm@fb.com>,
	Davide Libenzi <davidel@xmailserver.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH] eventfs: avoid unused variable warning
Date: Wed, 28 Jan 2015 16:10:28 +0100	[thread overview]
Message-ID: <88925492.FKoyo2trpD@wuerfel> (raw)

An optimization patch from Chris Mason causes build warnings about
an unused variable.

The patch that broke this is currently in the akpm-current series,
so this fixup can be folded into the original patch. I was expecting
multiple people to send a patch for this, so I waited a bit at first.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 567162b87a5c5f  ("eventfd: don't take the spinlock in eventfd_poll")

diff --git a/fs/eventfd.c b/fs/eventfd.c
index 439e6f0177f3..303ddc43dbee 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -118,7 +118,6 @@ static unsigned int eventfd_poll(struct file *file, poll_table *wait)
 {
 	struct eventfd_ctx *ctx = file->private_data;
 	unsigned int events = 0;
-	unsigned long flags;
 	unsigned int count;
 
 	poll_wait(file, &ctx->wqh, wait);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2015-01-28 15:10 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=88925492.FKoyo2trpD@wuerfel \
    --to=arnd@arndb.de \
    --cc=akpm@linux-foundation.org \
    --cc=clm@fb.com \
    --cc=davidel@xmailserver.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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).