]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: avoid name clash in __page_to_voff()
authorOleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Wed, 18 Jan 2017 07:09:25 +0000 (09:09 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Jan 2017 11:24:04 +0000 (11:24 +0000)
commit1f5a27beac4af59b5721a0655c4f14d6c028d990
tree508d34357d6202257c1d0b8d7bb3ce13fc0dbf9e
parent1a5797c26b4de1230b8630c7ba67cd526ddeb8de
arm64: mm: avoid name clash in __page_to_voff()

The arm64 __page_to_voff() macro takes a parameter called 'page', and
also refers to 'struct page'. Thus, if the value passed in is not
called 'page', we'll refer to the wrong struct name (which might not
exist).

Fixes: 747573e665e9 ("arm64: mm: fix __page_to_voff definition")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Suggested-by: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Signed-off-by: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/memory.h