From: YueHaibing <yuehaibing@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Toshi Kani <toshi.kani@hpe.com>,
Will Deacon <will.deacon@arm.com>,
Chintan Pandya <cpandya@codeaurora.org>,
Thomas Gleixner <tglx@linutronix.de>
Cc: YueHaibing <yuehaibing@huawei.com>,
<linux-kernel@vger.kernel.org>, <kernel-janitors@vger.kernel.org>
Subject: [PATCH -next] mm: fix set but not used warning
Date: Mon, 18 Feb 2019 13:57:43 +0000 [thread overview]
Message-ID: <20190218135743.131904-1-yuehaibing@huawei.com> (raw)
Fixes gcc '-Wunused-but-set-variable' warning:
lib/ioremap.c: In function 'ioremap_page_range':
lib/ioremap.c:203:16: warning:
variable 'start' set but not used [-Wunused-but-set-variable]
flush_cache_vmap may no need param, so add __maybe_unused fix this warning.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
lib/ioremap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ioremap.c b/lib/ioremap.c
index 063213685563..d1c7a488e731 100644
--- a/lib/ioremap.c
+++ b/lib/ioremap.c
@@ -200,7 +200,7 @@ int ioremap_page_range(unsigned long addr,
unsigned long end, phys_addr_t phys_addr, pgprot_t prot)
{
pgd_t *pgd;
- unsigned long start;
+ unsigned long __maybe_unused start;
unsigned long next;
int err;
next reply other threads:[~2019-02-18 13:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 13:57 YueHaibing [this message]
2019-02-19 18:28 ` [PATCH -next] mm: fix set but not used warning Kani, Toshi
2019-02-20 21:43 ` Andrew Morton
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=20190218135743.131904-1-yuehaibing@huawei.com \
--to=yuehaibing@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=cpandya@codeaurora.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=toshi.kani@hpe.com \
--cc=will.deacon@arm.com \
/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).