linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
@ 2015-10-26 11:26 Alexander Kuleshov
  2015-10-26 20:07 ` Laura Abbott
  2015-10-28 18:36 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kuleshov @ 2015-10-26 11:26 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 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);
-- 
2.6.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
  2015-10-26 11:26 [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED Alexander Kuleshov
@ 2015-10-26 20:07 ` Laura Abbott
  2015-10-28 18:36 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Laura Abbott @ 2015-10-26 20:07 UTC (permalink / raw)
  To: linux-arm-kernel

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);
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
  2015-10-26 11:26 [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED Alexander Kuleshov
  2015-10-26 20:07 ` Laura Abbott
@ 2015-10-28 18:36 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2015-10-28 18:36 UTC (permalink / raw)
  To: linux-arm-kernel

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 <kuleshovmail@gmail.com>

Queued for 4.4. Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-28 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 11:26 [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED Alexander Kuleshov
2015-10-26 20:07 ` Laura Abbott
2015-10-28 18:36 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).