From: laura@labbott.name (Laura Abbott)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
Date: Mon, 26 Oct 2015 13:07:48 -0700 [thread overview]
Message-ID: <562E8814.7080608@labbott.name> (raw)
In-Reply-To: <1445858817-7056-1-git-send-email-kuleshovmail@gmail.com>
On 10/26/15 4:26 AM, Alexander Kuleshov wrote:
> The <linux/mm.h> already provides the PAGE_ALIGNED macro. Let's
> use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: Laura Abbott <laura@labbott.name>
> ---
> arch/arm64/mm/pageattr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c
> index e47ed1c..3571c73 100644
> --- a/arch/arm64/mm/pageattr.c
> +++ b/arch/arm64/mm/pageattr.c
> @@ -45,7 +45,7 @@ static int change_memory_common(unsigned long addr, int numpages,
> int ret;
> struct page_change_data data;
>
> - if (!IS_ALIGNED(addr, PAGE_SIZE)) {
> + if (!PAGE_ALIGNED(addr)) {
> start &= PAGE_MASK;
> end = start + size;
> WARN_ON_ONCE(1);
>
WARNING: multiple messages have this Message-ID (diff)
From: Laura Abbott <laura@labbott.name>
To: Alexander Kuleshov <kuleshovmail@gmail.com>,
Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>,
Daniel Borkmann <daniel@iogearbox.net>,
Alexei Starovoitov <ast@plumgrid.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
Date: Mon, 26 Oct 2015 13:07:48 -0700 [thread overview]
Message-ID: <562E8814.7080608@labbott.name> (raw)
In-Reply-To: <1445858817-7056-1-git-send-email-kuleshovmail@gmail.com>
On 10/26/15 4:26 AM, Alexander Kuleshov wrote:
> The <linux/mm.h> already provides the PAGE_ALIGNED macro. Let's
> use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: Laura Abbott <laura@labbott.name>
> ---
> arch/arm64/mm/pageattr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c
> index e47ed1c..3571c73 100644
> --- a/arch/arm64/mm/pageattr.c
> +++ b/arch/arm64/mm/pageattr.c
> @@ -45,7 +45,7 @@ static int change_memory_common(unsigned long addr, int numpages,
> int ret;
> struct page_change_data data;
>
> - if (!IS_ALIGNED(addr, PAGE_SIZE)) {
> + if (!PAGE_ALIGNED(addr)) {
> start &= PAGE_MASK;
> end = start + size;
> WARN_ON_ONCE(1);
>
next prev parent reply other threads:[~2015-10-26 20:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 11:26 [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED Alexander Kuleshov
2015-10-26 11:26 ` Alexander Kuleshov
2015-10-26 20:07 ` Laura Abbott [this message]
2015-10-26 20:07 ` Laura Abbott
2015-10-28 18:36 ` Catalin Marinas
2015-10-28 18:36 ` Catalin Marinas
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=562E8814.7080608@labbott.name \
--to=laura@labbott.name \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.