mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
io_uring: fix missing kmap() declaration on powerpc
commitaa4c396775upstream. Christophe reports that current master fails building on powerpc with this error: 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); ^ which is caused by a missing highmem.h include. Fix it by including it. Fixes:311ae9e159("io_uring: fix dead-hung for non-iter fixed rw") Reported-by: Christophe Leroy <christophe.leroy@c-s.fr> Tested-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbc5b45148
commit
1dec7fcac3
@@ -70,6 +70,7 @@
|
||||
#include <linux/nospec.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/hugetlb.h>
|
||||
#include <linux/highmem.h>
|
||||
|
||||
#include <uapi/linux/io_uring.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user