Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1135108rwb; Wed, 16 Nov 2022 12:36:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eOMz0zylHG0cQ2cT/oX7z9raQd0uQ7sJz5i+IJ8WfnT8JnpfSy7yF4Qvd/jD3LqbPagKL X-Received: by 2002:aa7:8b49:0:b0:56b:b37d:9857 with SMTP id i9-20020aa78b49000000b0056bb37d9857mr25510699pfd.12.1668631016485; Wed, 16 Nov 2022 12:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668631016; cv=none; d=google.com; s=arc-20160816; b=DzGz8DNGf4jb5I98q6nWvqAxL6aJbV1OdaU1bom8ITJQFgL7hATX/s4FBtX0y1BFzV hMyBHkDTy69uxD3E29vFDFQaDH/llSW29gUVclUiiV5zfQHsQOAXiJpOpG3LpwIvkUkx E0CTTBsTxMLz/ND/ba4nEGVEmiGKaxCtuN2EMYwMQwoDxNFGQb3jUN2I8jLmu85B/HcM gdm44NIL5qV9PJzBZiJvnGvFSk5M3Xx9S/sWP/RkrwNU6kQPxqs3NkuzMaOFdkppymXy SAWcTjB7A3o5qJRAE8NQinrsVaXHq42OBwesSbeSm+HK3d4jrCiscPwT5JO6JhS5PsXS Bdyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CpmqOAa1OU9ci5ByMvbNPluq1SnCp6Q8G9wYMlbnqkA=; b=0p2LYOd8gUiabqaw5OSnS/5D/nRU/paRAEpPjG0k/DAvoh93g8vo8xp12/3wxPbcJ8 oW+A+H5owTQZT1VQKK6RHEI5oG2sasbH55vUHO2MKJEylKeuLVf+Y6coWDVbuFtOCfVC ufn7zqLavJvTBkEp8yw2qDrnXqDfmGi+AmjTlR+yVX3qVtnpC6EnfFTGhGx3S+00kYUE ykYaHX7D9sMP9m/WU9W9V/YsfzTlchufwlOh7svKqhzjEqrQEHinqQ+S5/4v7S1dFxa8 j0kAIXj1bjy3DrVZao1es9Tu2Df6KUZd7H9oDxZuUjM422+nPg1plxZYe1nxU0JFayTC Il7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=X6C32Xq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a635f0a000000b00460f2778437si15353331pgb.366.2022.11.16.12.36.44; Wed, 16 Nov 2022 12:36:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=X6C32Xq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233485AbiKPUSf (ORCPT + 91 others); Wed, 16 Nov 2022 15:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiKPUS0 (ORCPT ); Wed, 16 Nov 2022 15:18:26 -0500 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25421CED; Wed, 16 Nov 2022 12:18:23 -0800 (PST) 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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