Re: [PATCH] lib: fix build failure in CONFIG_DEBUG_VIRTUAL test

2018-12-12 Thread Michael Ellerman
Christophe Leroy writes: > 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'

Re: [PATCH] lib: fix build failure in CONFIG_DEBUG_VIRTUAL test

2018-12-10 Thread Kees Cook
On Mon, Dec 10, 2018 at 12:08 AM Christophe Leroy wrote: > > 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 declarati

[PATCH] lib: fix build failure in CONFIG_DEBUG_VIRTUAL test

2018-12-10 Thread Christophe Leroy
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]