]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memblock test: fix implicit declaration of function 'virt_to_phys'
authorWei Yang <richard.weiyang@gmail.com>
Tue, 6 Aug 2024 01:03:15 +0000 (01:03 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 6 Aug 2024 05:20:03 +0000 (08:20 +0300)
commit39f64e402f659890a99d415eaf63a01f3b80a9a8
tree5a3a750ce4bf59edbf612dfa56e1556756a44442
parente2ae9cf39f8806d2d8f5eb0a22ba511804a804ec
memblock test: fix implicit declaration of function 'virt_to_phys'

Commit 94ff46de4a73 ("memblock: Move late alloc warning down to phys
alloc") introduce the usage of virt_to_phys(), which is not defined in
memblock tests.

Define it in mm.h to fix the build error.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240806010319.29194-1-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
tools/include/linux/mm.h