]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit1c8a946bf3754a59cba1fc373949a8114bfe5aaa
tree508d34357d6202257c1d0b8d7bb3ce13fc0dbf9e
parent524dabe1c68e0bca25ce7b108099e5d89472a101
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: 3fa72fe9c614 ("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