From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
To: YueHaibing <yuehaibing@huawei.com>
Cc: akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz,
yang.shi@linux.alibaba.com, jannh@google.com, walken@google.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm/mmap.c: silence variable 'new_start' set but not used
Date: Wed, 24 Jul 2019 17:34:46 +0300 [thread overview]
Message-ID: <20190724143445.ezii7bwbbxxxtu2k@black.fi.intel.com> (raw)
In-Reply-To: <20190724140739.59532-1-yuehaibing@huawei.com>
On Wed, Jul 24, 2019 at 02:07:39PM +0000, YueHaibing wrote:
> 'new_start' is used in is_hugepage_only_range(),
> which do nothing in some arch. gcc will warning:
Make is_hugepage_only_range() reference the variable on such archs:
#define is_hugepage_only_range(mm, addr, len) ((void) addr, 0)
--
Kirill A. Shutemov
next prev parent reply other threads:[~2019-07-24 14:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 14:07 YueHaibing
2019-07-24 14:11 ` Qian Cai
2019-07-24 14:17 ` Michal Hocko
2019-07-24 14:34 ` Kirill A. Shutemov [this message]
2019-07-25 9:30 ` Yuehaibing
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=20190724143445.ezii7bwbbxxxtu2k@black.fi.intel.com \
--to=kirill.shutemov@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=jannh@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=vbabka@suse.cz \
--cc=walken@google.com \
--cc=yang.shi@linux.alibaba.com \
--cc=yuehaibing@huawei.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