lib: fix build failure in CONFIG_DEBUG_VIRTUAL test
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 10 Dec 2018 08:08:28 +0000 (08:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:10 +0000 (09:51 +0100)
commit4f44e58a561412c4225544220cdde8cf27defb34
tree4dbb13d60d5bb6096e2c3b63a7e940769ab5d125
parent8dbea64423dca8a357aeea7160713ba9c0e26845
lib: fix build failure in CONFIG_DEBUG_VIRTUAL test

commit 10fdf838e5f540beca466e9d1325999c072e5d3f upstream.

On several arches, virt_to_phys() is in io.h

Build fails without it:

  CC      lib/test_debug_virtual.o
lib/test_debug_virtual.c: In function 'test_debug_virtual_init':
lib/test_debug_virtual.c:26:7: error: implicit declaration of function 'virt_to_phys' [-Werror=implicit-function-declaration]
  pa = virt_to_phys(va);
       ^

Fixes: e4dace361552 ("lib: add test module for CONFIG_DEBUG_VIRTUAL")
CC: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/test_debug_virtual.c