From 5711325cbb37d10c21a6975d1f1ebea11799c05e Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Wed, 17 Nov 2021 14:19:18 -0800 Subject: [PATCH] Makefile: Fix android compilation Inclue cmdprio for Android as well. Without the patch, make for Android fails at link time: engines/io_uring.c:824: error: undefined reference to 'fio_cmdprio_init' engines/io_uring.c:456: error: undefined reference to 'fio_cmdprio_set_ioprio' ... Fixes e27b9ff0e ("cmdprio: move cmdprio function definitions to a new cmdprio.c file") Signed-off-by: Gwendal Grignou Link: https://lore.kernel.org/r/20211117221918.3050439-1-gwendal@chromium.org Signed-off-by: Jens Axboe --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index e9028dce..04c1e0a7 100644 --- a/Makefile +++ b/Makefile @@ -236,6 +236,7 @@ endif ifeq ($(CONFIG_TARGET_OS), Android) SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c profiles/tiobench.c \ oslib/linux-dev-lookup.c engines/io_uring.c + cmdprio_SRCS = engines/cmdprio.c ifdef CONFIG_HAS_BLKZONED SOURCE += oslib/linux-blkzoned.c endif -- 2.25.1