From patchwork Mon Oct 24 10:00:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Metzmacher X-Patchwork-Id: 13016999 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 97961ECAAA1 for ; Mon, 24 Oct 2022 10:01:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbiJXKBZ (ORCPT ); Mon, 24 Oct 2022 06:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbiJXKBI (ORCPT ); Mon, 24 Oct 2022 06:01:08 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B12C35B78E for ; Mon, 24 Oct 2022 03:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-Id:Date:Cc:To:From; bh=TFV9T22WCzFLH53j+fSK1EnRaFhlvWoFpBMqq4G5o74=; b=3rcuhLFsGs30B9dex5ZxULUYbM EXVdg2VLX1F+dDnh4hIJ7YtidTnJ6+9PdjwYh7ragmo7KqkgLRX4qU3shby4b6z4wLyjC2FLiTYn+ sC9d6AP6rvyDZF7JpFOpSVtEW3y9JA5Ag/W9M8k8oN6ltUja00lQimDl6gk0ie/h+nSzE5aUVwGlD UpdkD9PyWyTegyxxsheBPzX0My2vCNM2+Gc+ch829lFpvo5zc+MvDK+CrLKvk0Joh17iYHZ0FulNg JoHZpI0VnBrfV4Er1x6UbUabF6j3Vs2gT8wMf0lpqdaYlsF7qLAPwa8NIdJcWFsdgZLFp4ej1H4rM nrZdxjgEG9VigFvTEPS6UiuBlFkOW6O6rCDKWsGD/rvd8nqvEmX9kh97lvMjpyu8w5kmQG0DeNmrh SWDlLZ05L2SpgMNayDwXKluAUyK48/b/PmpfwAI4nyhAhzsqp6EsvOM6p1Ks8XVJR2xjbXE/bXWzU zfzf57SWpADNUav+JrmJ8nqp; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256) (Exim) id 1omuGM-005VjA-Vf; Mon, 24 Oct 2022 10:00:55 +0000 From: Stefan Metzmacher To: io-uring@vger.kernel.org Cc: Stefan Metzmacher Subject: [PATCH 1/1] uapi:io_uring.h: don't force linux/time_types.h for userspace Date: Mon, 24 Oct 2022 12:00:39 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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: 78a861b94959 ("io_uring: add sync cancelation API through io_uring_register()") Link: https://github.com/axboe/liburing/issues/708 Signed-off-by: Stefan Metzmacher --- 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 32e1f2a55b70..a2ce8ba7abb5 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -10,7 +10,16 @@ #include #include +/* + * this file is shared with liburing and that 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" {