]> git.baikalelectronics.ru Git - kernel.git/commit
of: unittest: Fix build on architectures without CONFIG_OF_ADDRESS
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 1 Dec 2020 12:47:25 +0000 (12:47 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 2 Dec 2020 16:49:39 +0000 (16:49 +0000)
commiteebfa76a162ea4ed061a52ed637e126157485f1b
tree4ce4e0502cc6c9200e579d69ee85370ae163cb97
parent346e2269b163beafdae90b10eef262e8732c5b0b
of: unittest: Fix build on architectures without CONFIG_OF_ADDRESS

of_dma_get_max_cpu_address() is not defined if !CONFIG_OF_ADDRESS, so
return early in of_unittest_dma_get_max_cpu_address().

Fixes: 0661859849f0 ("of: unittest: Add test for of_dma_get_max_cpu_address()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/of/unittest.c