From: Anders Roxell <anders.roxell@linaro.org>
To: bmt@zurich.ibm.com, dledford@redhat.com, jgg@ziepe.ca
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
Anders Roxell <anders.roxell@linaro.org>
Subject: [PATCH] rdma: siw: remove unused variable
Date: Fri, 26 Jul 2019 11:25:40 +0200 [thread overview]
Message-ID: <20190726092540.22467-1-anders.roxell@linaro.org> (raw)
The variable 'p' si no longer used and the compiler rightly complains
that it should be removed.
../drivers/infiniband/sw/siw/siw_mem.c: In function ‘siw_free_plist’:
../drivers/infiniband/sw/siw/siw_mem.c:66:16: warning: unused variable
‘p’ [-Wunused-variable]
struct page **p = chunk->plist;
^
Rework to remove unused variable.
Fixes: 8288d030447f ("mm/gup: add make_dirty arg to put_user_pages_dirty_lock()")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
drivers/infiniband/sw/siw/siw_mem.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/infiniband/sw/siw/siw_mem.c b/drivers/infiniband/sw/siw/siw_mem.c
index 358d440efa11..ab83a9cec562 100644
--- a/drivers/infiniband/sw/siw/siw_mem.c
+++ b/drivers/infiniband/sw/siw/siw_mem.c
@@ -63,8 +63,6 @@ struct siw_mem *siw_mem_id2obj(struct siw_device *sdev, int stag_index)
static void siw_free_plist(struct siw_page_chunk *chunk, int num_pages,
bool dirty)
{
- struct page **p = chunk->plist;
-
put_user_pages_dirty_lock(chunk->plist, num_pages, dirty);
}
--
2.20.1
next reply other threads:[~2019-07-26 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-26 9:25 Anders Roxell [this message]
2019-07-26 16:06 ` Bernard Metzler
2019-07-29 18:19 ` Doug Ledford
2019-07-29 19:03 ` Jason Gunthorpe
2019-07-29 19:45 ` Doug Ledford
2019-07-29 20:14 ` John Hubbard
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=20190726092540.22467-1-anders.roxell@linaro.org \
--to=anders.roxell@linaro.org \
--cc=bmt@zurich.ibm.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.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
all inboxes | Powered by JetHome®