Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752594AbbKQH4G (ORCPT ); Tue, 17 Nov 2015 02:56:06 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:55084 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbbKQH4E (ORCPT ); Tue, 17 Nov 2015 02:56:04 -0500 X-AuditID: cbfee61b-f79d56d0000048c5-9d-564add8b0b4b From: Shailendra Verma To: Russell King , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Riley Andrews , Laura Abbott , Jungseung Lee , Shailendra Verma , Dan Carpenter , Mitchel Humpherys , Sumit Semwal , "Kirill A. Shutemov" , Gioh Kim , Rasmus Villemoes , Shawn Lin , Markus Elfring , linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, Hillf Danton Cc: Ravikant Bijendra Sharma , Shailendra Verma , linux-kernel@vger.kernel.org, vidushi.koul@samsung.com Subject: [PATCH] arch:arm:mm:Aligning the module end address. Date: Tue, 17 Nov 2015 13:24:00 +0530 Message-id: <1447746840-26777-1-git-send-email-shailendra.v@samung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsVy+t9jAd3uu15hBtfXS1u8/3ufzeL1v+ks FnvO/GK3ON+5nNniWdMXRovmxevZLObOP8xu8XfOOyaLm8/nsFhs75zBbrHp8TVWi8u75rBZ 3L7Ma/F41jw2i7Xzt7FZNDXMZrd4vekvo8WteTPZLBZ9e8VscefJelaLU3c/Aw25eInNQcxj 4tuPLB7bdm9j9Whp7mHzuNzXy+Rxb99hFo+ds+6ye3S9vcLkcefaHjaPeScDPfbPXcPusXlJ vcfHp7dYPC50ZXv8nbWfxaNvyypGj6ZT7awBglFcNimpOZllqUX6dglcGU0zpjIWXGevuD/1 DlMD4za2LkZODgkBE4nm1X2sELaYxIV764HiXBxCAksZJV5c+sUC4bxmlHg0s4G9i5GDg03A QGLTrQCQuIjAdDaJS5unsYM4zALzGSU+fJsDNlZYwFZi2ZkfTCANLAKqEi87lEHCvALuEpPf XmUFCUsIKEjMmWQzgZF7ASPDKkaJ1ILkguKk9FyjvNRyveLE3OLSvHS95PzcTYzgSHkmvYPx 8C73Q4wCHIxKPLwCx73ChFgTy4orcw8xSnAwK4nwKl8HCvGmJFZWpRblxxeV5qQWH2KU5mBR EufV9zQKExJITyxJzU5NLUgtgskycXBKNTCm/A0oCG/fdvLQoe2SF+fy7ImQu6D/9EdDz+uX 2Xnx2wP6NN9lnhd71DThpPBU55V29/NONcy82uMYHtX/JGfL6jwhpoviHSFyrodEJPr82ZZl vIhaWsDnLPF5hd+soMYjLI/XnWEo5+j8vStzum9pYTLDjiuHJH94/r7F4WuSW8908v6pqbeV WIozEg21mIuKEwGlyWb1kAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 36 From: Shailendra Verma The module end was not aligned as of module start, so aligning end also. Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- linux-4.3-rc6/arch/arm64/mm/pageattr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-4.3-rc6/arch/arm64/mm/pageattr.c b/linux-4.3-rc6/arch/arm64/mm/pageattr.c index e47ed1c..70e7a4c 100644 --- a/linux-4.3-rc6/arch/arm64/mm/pageattr.c +++ b/linux-4.3-rc6/arch/arm64/mm/pageattr.c @@ -45,10 +45,9 @@ static int change_memory_common(unsigned long addr, int numpages, int ret; struct page_change_data data; - if (!IS_ALIGNED(addr, PAGE_SIZE)) { + if (WARN_ON_ONCE(!IS_ALIGNED(addr, PAGE_SIZE))) { start &= PAGE_MASK; - end = start + size; - WARN_ON_ONCE(1); + end = PAGE_ALIGN(end); } if (start < MODULES_VADDR || start >= MODULES_END) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/