From 76a490bb98dcfe03be9b4453b8fe401cc2a77f7f Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Tue, 31 May 2022 19:01:48 +0530 Subject: [PATCH] configure: check nvme uring command support Modify configure to check availability of nvme_uring_cmd, but only when the target OS is Linux. This way in the follow up patch we can define the missing structure to prevent compilation errors. Signed-off-by: Ankit Kumar Link: https://lore.kernel.org/r/20220531133155.17493-3-ankit.kumar@samsung.com Signed-off-by: Jens Axboe --- configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure b/configure index 4ee536a0..8182322b 100755 --- a/configure +++ b/configure @@ -2587,6 +2587,27 @@ if test "$libzbc" != "no" ; then fi print_config "libzbc engine" "$libzbc" +if test "$targetos" = "Linux" ; then +########################################## +# Check NVME_URING_CMD support +cat > $TMPC << EOF +#include +int main(void) +{ + struct nvme_uring_cmd *cmd; + + return sizeof(struct nvme_uring_cmd); +} +EOF +if compile_prog "" "" "nvme uring cmd"; then + output_sym "CONFIG_NVME_URING_CMD" + nvme_uring_cmd="yes" +else + nvme_uring_cmd="no" +fi +print_config "NVMe uring command support" "$nvme_uring_cmd" +fi + ########################################## # Check if we have xnvme if test "$xnvme" != "yes" ; then -- 2.25.1