Skip to content

Commit 4f44e58

Browse files
chleroygregkh
authored andcommitted
lib: fix build failure in CONFIG_DEBUG_VIRTUAL test
commit 10fdf83 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: e4dace3 ("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>
1 parent 8dbea64 commit 4f44e58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/test_debug_virtual.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <linux/vmalloc.h>
66
#include <linux/slab.h>
77
#include <linux/sizes.h>
8+
#include <linux/io.h>
89

910
#include <asm/page.h>
1011
#ifdef CONFIG_MIPS

0 commit comments

Comments
 (0)