Build failure on latest powerpc/merge (311ae9e159d8 io_uring: fix dead-hung for non-iter fixed rw)

From: Christophe Leroy
Date: Fri Nov 29 2019 - 09:53:15 EST


 CC fs/io_uring.o
fs/io_uring.c: In function âloop_rw_iterâ:
fs/io_uring.c:1628:21: error: implicit declaration of function âkmapâ [-Werror=implicit-function-declaration]
ÂÂÂ iovec.iov_base = kmap(iter->bvec->bv_page)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^
fs/io_uring.c:1628:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ÂÂÂ iovec.iov_base = kmap(iter->bvec->bv_page)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^
fs/io_uring.c:1643:4: error: implicit declaration of function âkunmapâ [-Werror=implicit-function-declaration]
ÂÂÂ kunmap(iter->bvec->bv_page);
ÂÂÂ ^


Reverting commit 311ae9e159d8 ("io_uring: fix dead-hung for non-iter fixed rw") clears the failure.

Most likely an #include is missing.


Christophe