]> git.baikalelectronics.ru Git - kernel.git/commit
mm/kasan: Switch to using __pa_symbol and lm_alias
authorLaura Abbott <labbott@redhat.com>
Tue, 10 Jan 2017 21:35:44 +0000 (13:35 -0800)
committerWill Deacon <will.deacon@arm.com>
Wed, 11 Jan 2017 13:56:50 +0000 (13:56 +0000)
commit5c08d91b4b67d46a6f16c69dc74308d4f4efab68
treedeadee2a46cb0675e319ec47db6753f5a73686e2
parent616cb15b74d4ef15a6378c17a8c9ac13399ca0f2
mm/kasan: Switch to using __pa_symbol and lm_alias

__pa_symbol is the correct API to find the physical address of symbols.
Switch to it to allow for debugging APIs to work correctly. Other
functions such as p*d_populate may call __pa internally. Ensure that the
address passed is in the linear region by calling lm_alias.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
mm/kasan/kasan_init.c