]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commiteb24644e98751dfa4fc2b7486a912978e8dcd0be
treea32a8faf3257ec3a5973e4f7e68234b07c955cf7
parentaeb6feb4cf800e477f6eafaf5e5288ca00f42a65
lib: fix build failure in CONFIG_DEBUG_VIRTUAL test

BugLink: https://bugs.launchpad.net/bugs/1837477
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
lib/test_debug_virtual.c