Re: 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 - 11:14:22 EST




Le 29/11/2019 Ã 17:04, Jens Axboe a ÃcritÂ:
On 11/29/19 6:53 AM, Christophe Leroy wrote:
ÂÂÂ 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.

Huh weird how the build bots didn't catch that. Does the below work?

Yes it works, thanks.

Christophe