From: Alexander Kuleshov <hidden> Date: 2015-10-26 11:29:05
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 <redacted>
---
arch/arm64/mm/pageattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -45,7 +45,7 @@ static int change_memory_common(unsigned long addr, int numpages,intret;structpage_change_datadata;-if(!IS_ALIGNED(addr,PAGE_SIZE)){+if(!PAGE_ALIGNED(addr)){start&=PAGE_MASK;end=start+size;WARN_ON_ONCE(1);
From: Laura Abbott <hidden> Date: 2015-10-26 20:07:52
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 <redacted>
@@ -45,7 +45,7 @@ static int change_memory_common(unsigned long addr, int numpages,intret;structpage_change_datadata;-if(!IS_ALIGNED(addr,PAGE_SIZE)){+if(!PAGE_ALIGNED(addr)){start&=PAGE_MASK;end=start+size;WARN_ON_ONCE(1);
On Mon, Oct 26, 2015 at 05:26:57PM +0600, 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 <redacted>