From: andr2000@gmail.com (Oleksandr Andrushchenko)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: mm: fix __page_to_voff definition
Date: Tue, 17 Jan 2017 17:23:53 +0200 [thread overview]
Message-ID: <1484666633-1753-1-git-send-email-andr2000@gmail.com> (raw)
From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Fix parameter name for __page_to_voff, to match its definition.
There are other callers of page_to_virt which do not
declare 'page'.
Fixes: 3fa72fe9c614 ("arm64: mm: fix __page_to_voff definition")
Signed-off-by: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
---
arch/arm64/include/asm/memory.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h
index bfe632808d77..90c39a662379 100644
--- a/arch/arm64/include/asm/memory.h
+++ b/arch/arm64/include/asm/memory.h
@@ -222,7 +222,7 @@ static inline void *phys_to_virt(phys_addr_t x)
#define _virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
#else
#define __virt_to_pgoff(kaddr) (((u64)(kaddr) & ~PAGE_OFFSET) / PAGE_SIZE * sizeof(struct page))
-#define __page_to_voff(page) (((u64)(page) & ~VMEMMAP_START) * PAGE_SIZE / sizeof(struct page))
+#define __page_to_voff(kaddr) (((u64)(kaddr) & ~VMEMMAP_START) * PAGE_SIZE / sizeof(struct page))
#define page_to_virt(page) ((void *)((__page_to_voff(page)) | PAGE_OFFSET))
#define virt_to_page(vaddr) ((struct page *)((__virt_to_pgoff(vaddr)) | VMEMMAP_START))
--
2.7.4
next reply other threads:[~2017-01-17 15:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 15:23 Oleksandr Andrushchenko [this message]
2017-01-17 16:15 ` [PATCH] arm64: mm: fix __page_to_voff definition Mark Rutland
2017-01-17 17:13 ` Oleksandr Andrushchenko
2017-01-17 17:19 ` Mark Rutland
2017-01-17 18:15 ` Oleksandr Andrushchenko
2017-01-17 18:38 ` Mark Rutland
-- strict thread matches above, loose matches on Subject: below --
2016-10-21 8:58 Neeraj Upadhyay
2016-10-21 9:45 ` Mark Rutland
2016-10-21 10:18 ` Ard Biesheuvel
2016-10-30 14:38 ` Catalin Marinas
2016-10-31 15:32 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484666633-1753-1-git-send-email-andr2000@gmail.com \
--to=andr2000@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).