From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964905AbcALK0N (ORCPT ); Tue, 12 Jan 2016 05:26:13 -0500 Received: from terminus.zytor.com ([198.137.202.10]:56807 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbcALK0F (ORCPT ); Tue, 12 Jan 2016 05:26:05 -0500 Date: Tue, 12 Jan 2016 02:25:27 -0800 From: tip-bot for Kefeng Wang Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, wangkefeng.wang@huawei.com, torvalds@linux-foundation.org, peterz@infradead.org, guohanjun@huawei.com, kuleshovmail@gmail.com, mingo@kernel.org, linux-kernel@vger.kernel.org Reply-To: tglx@linutronix.de, hpa@zytor.com, torvalds@linux-foundation.org, wangkefeng.wang@huawei.com, guohanjun@huawei.com, kuleshovmail@gmail.com, peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org In-Reply-To: <1452565170-11083-1-git-send-email-wangkefeng.wang@huawei.com> References: <1452565170-11083-1-git-send-email-wangkefeng.wang@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED Git-Commit-ID: b500f77baea576b74c3961613b67eaffcdf65c57 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b500f77baea576b74c3961613b67eaffcdf65c57 Gitweb: http://git.kernel.org/tip/b500f77baea576b74c3961613b67eaffcdf65c57 Author: Kefeng Wang AuthorDate: Tue, 12 Jan 2016 10:19:30 +0800 Committer: Ingo Molnar CommitDate: Tue, 12 Jan 2016 11:09:48 +0100 x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED Use PAGE_ALIGEND macro in to simplify code. Signed-off-by: Kefeng Wang Cc: Cc: Alexander Kuleshov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1452565170-11083-1-git-send-email-wangkefeng.wang@huawei.com Signed-off-by: Ingo Molnar --- arch/x86/mm/init_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index ec081fe..8829482 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -814,8 +814,7 @@ remove_pte_table(pte_t *pte_start, unsigned long addr, unsigned long end, if (phys_addr < (phys_addr_t)0x40000000) return; - if (IS_ALIGNED(addr, PAGE_SIZE) && - IS_ALIGNED(next, PAGE_SIZE)) { + if (PAGE_ALIGNED(addr) && PAGE_ALIGNED(next)) { /* * Do not free direct mapping pages since they were * freed when offlining, or simplely not in use.