From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from hr2.samba.org (hr2.samba.org [144.76.82.148]) by gnuweeb.org (Postfix) with ESMTPS id 30EF381646 for ; Wed, 16 Nov 2022 20:18:24 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (3072-bit key; secure) header.d=samba.org header.i=@samba.org header.a=rsa-sha256 header.s=42 header.b=X6C32Xq4; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=From:Cc:To:Date:Message-ID; bh=CpmqOAa1OU9ci5ByMvbNPluq1SnCp6Q8G9wYMlbnqkA=; b=X6C32Xq4IV4GAw8RLcSpomnmno gTBlVPOQBrFGtUKsO59I/Fetef3vR0+aSJKmewabvLbUUppoOxCLm7ahMex9AbJ0RAMz3IhqLm/KH GD7bPC9uo3kajIitPEXxi2f9ADrABWOmea2GVTsGFGfOSxpNCx5subNaeeAuOxc4whLER+zk1r3nU 2D9cAXwfZ6SrRh5UF/Gb9J1ttRTpt5kCDk//0fZHqqY7rhWHSZnGH3mm6yNjxqlzv1V1sNsueE0Jt D0LQLkDZDnl/skU1/5GhCm2pLk8vJmJIepJpv7R6xtUsLLWoidfkvWcsYqEpIFx/eWEVObqHlOCbH bP++U8V1PL9NiO2oQdmSfS3e/Q+KrkIarP2bBbY8SDphaU938CTKMWK40q0mgfmIpmWQ5HGscKu09 yu5G1ti1/EAmTcevHWrs84d9BcdqExYJAQD1FKdMLegRbXCUtG3WIcV3Snukj31kxvtroNToEmIEZ AhCNfrPau4wb9Y4UvYH0HSMO; 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 1ovOrV-008wnE-Qz; Wed, 16 Nov 2022 20:18:21 +0000 Message-ID: Date: Wed, 16 Nov 2022 21:18:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: (subset) [PATCH v1 0/2] io_uring uapi updates Content-Language: en-US, de-DE To: Jens Axboe , Ammar Faizi Cc: GNU/Weeb Mailing List , io-uring Mailing List , Pavel Begunkov , Linux Kernel Mailing List , Stephen Rothwell References: <20221115212614.1308132-1-ammar.faizi@intel.com> <166855408973.7702.1716032255757220554.b4-ty@kernel.dk> <61293423-8541-cb8b-32b4-9a4decb3544f@gnuweeb.org> <69d39e98-71fb-c765-e8b9-b02933c524a9@samba.org> From: Stefan Metzmacher In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: Hi Jens, >> and needs a '#define HAVE_LINUX_TIME_TYPES_H 1' >> >> BTW, the original commit I posted was here: >> https://lore.kernel.org/io-uring/c7782923deeb4016f2ac2334bc558921e8d91a67.1666605446.git.metze@samba.org/ I'll push a better version soon, it inverts the ifdef logic like this: --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -10,7 +10,15 @@ #include #include +/* + * this file is shared with liburing and that has to autodetect + * if linux/time_types.h is available or not, it can + * define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H + * if linux/time_types.h is not available + */ +#ifndef UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H #include +#endif It also means that projects without liburing usage are not affected. And developers only have to care if they want to build on legacy systems without time_types.h Once that's accepted into the kernel I'll adjust the logic in liburing Does that sound like a plan? metze