From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbbJZUHw (ORCPT ); Mon, 26 Oct 2015 16:07:52 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35425 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603AbbJZUHv (ORCPT ); Mon, 26 Oct 2015 16:07:51 -0400 Subject: Re: [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED To: Alexander Kuleshov , Catalin Marinas References: <1445858817-7056-1-git-send-email-kuleshovmail@gmail.com> Cc: Will Deacon , Daniel Borkmann , Alexei Starovoitov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Laura Abbott Message-ID: <562E8814.7080608@labbott.name> Date: Mon, 26 Oct 2015 13:07:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1445858817-7056-1-git-send-email-kuleshovmail@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/26/15 4:26 AM, Alexander Kuleshov wrote: > The 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 Acked-by: Laura Abbott > --- > 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); >