From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78059C4332F for ; Tue, 15 Nov 2022 21:30:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238728AbiKOVap (ORCPT ); Tue, 15 Nov 2022 16:30:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238631AbiKOVan (ORCPT ); Tue, 15 Nov 2022 16:30:43 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30892C1C; Tue, 15 Nov 2022 13:30:43 -0800 (PST) Received: from localhost.localdomain (unknown [182.253.183.117]) by gnuweeb.org (Postfix) with ESMTPSA id 0A587815D8; Tue, 15 Nov 2022 21:30:39 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1668547842; bh=Xn8f4c/AFH0Ra0/h2Gix+NhkQDSMoiw3WSJtA+3ePEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pI1QqcBLYHv9bzz8GHTKtY/0som5LvguT6zF43bsRHQFtMaR2AiNtIFZeNTbzxo8o BjMf1xsaROAGSN+ZnxjbzBHMkSBitq0cvYGP1US0NY2S8askxicY+7cUZxPvQFtlxz qE/AB5pvIPmMG39QhvKUltBpFssQJRcm2X6WFa2YkWhtsb1RNbWjLQgKx2VVk/j6qw nFko6DF9lVeJ9mYZqri9MFwPe97HRMD69z/Z7j0u6MBJvHcc286ZnjO+Ze3cmFzjW9 R3j8l2kYakkGyg9XfQxyhhsuNkTtrxXsFrd73xmY2ObDDijy8Xmh8dhjfj6yM13o+j 9ws8vKNx16KLA== From: Ammar Faizi To: Jens Axboe Cc: Pavel Begunkov , Stefan Metzmacher , Linux Kernel Mailing List , io-uring Mailing List , GNU/Weeb Mailing List , Ammar Faizi Subject: [PATCH v1 1/2] io_uring: uapi: Don't force linux/time_types.h for userspace Date: Wed, 16 Nov 2022 04:29:52 +0700 Message-Id: <20221115212614.1308132-2-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221115212614.1308132-1-ammar.faizi@intel.com> References: <20221115212614.1308132-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Stefan Metzmacher include/uapi/linux/io_uring.h is synced 1:1 into liburing:src/include/liburing/io_uring.h. liburing has a configure check to detect the need for linux/time_types.h. Fixes: 78a861b9495920f8609dee5b670dacbff09d359f ("io_uring: add sync cancelation API through io_uring_register()") Link: https://github.com/axboe/liburing/issues/708 Link: https://github.com/axboe/liburing/pull/709 Signed-off-by: Stefan Metzmacher Signed-off-by: Ammar Faizi --- include/uapi/linux/io_uring.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 2df3225b562f..77027cbaf786 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -1,25 +1,34 @@ /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT */ /* * Header file for the io_uring interface. * * Copyright (C) 2019 Jens Axboe * Copyright (C) 2019 Christoph Hellwig */ #ifndef LINUX_IO_URING_H #define LINUX_IO_URING_H #include #include +/* + * This file is shared with liburing and it has to autodetect + * if linux/time_types.h is available + */ +#ifdef __KERNEL__ +#define HAVE_LINUX_TIME_TYPES_H 1 +#endif +#ifdef HAVE_LINUX_TIME_TYPES_H #include +#endif #ifdef __cplusplus extern "C" { #endif /* * IO submission data structure (Submission Queue Entry) */ struct io_uring_sqe { __u8 opcode; /* type of operation for this sqe */ __u8 flags; /* IOSQE_ flags */ __u16 ioprio; /* ioprio for the request */ -- Ammar Faizi