Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7524851rwb; Tue, 15 Nov 2022 13:44:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XfgNHMLEIpN2j+d/90UfFp2TEEmiIxjrNVJXMNSJdv63eKPmfI921GJQXAKojrP8paBYH X-Received: by 2002:a17:906:52d4:b0:7ad:a911:eb97 with SMTP id w20-20020a17090652d400b007ada911eb97mr14837315ejn.373.1668548694685; Tue, 15 Nov 2022 13:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668548694; cv=none; d=google.com; s=arc-20160816; b=XCxP8oYTAlXnmjzf6+CjAng7s0PeMF+fHfAj8iVef6aYAhRFHON5ahbI8qaz//WaYA vWh/0V7CVyjr929Y6JNcgAmueC2UkhlVeJCCukMzFqXWlKbrUKS4zgjm665nBPAcx/s0 dwt1QYZANY2EhL2AYCJjmpgEktKwKYVHjG+7/KCOvilQY2lFJvvyqqprlyJE+1ZzXaW6 zVGZQQw8yhwf2dZ0EaFyOcZd9V7U6o7kOse1LKYWtyW9LR+rwap6JHE+/sxQFDiKawBl fUdC86N8MLMjkj4t0qo9elc8ujUUawTAAngZJRcvAE9/t73SwsWwnzo452RS2FCe0j5x WqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bhVeo9tHZkf9qc0Qzczg+DTVqUktMaxqBiJAc2J5pls=; b=jgJvg3Ls8oLsvE2V0h9se0yo+1xiq2VZgS+9j4xHFrDaSw1lzHVDQvEjSItQObBGwX SnCk1+4FT6UxbGGw4/P3nNbwXqcnKoBg/e3LPe4sntA/Lh42Y5CHbJaAB91Ei+rIXBL+ NiRMdDepEwlsNh+VBsoWKAvuuope3pScP2EEKGYeSpShAx0l1ba2e3I2LdWorkFeD4Nk aH3wXoy/yBFMEg2z214I3+qpDUKYfyn9zr/DsBhpaDe7D7sIrPh2F1aTqTkO5ABNaMG6 hvBkG+hAwsP+hvyLZlgGNQ4qMsiCbdOqXVRgmG+1sYlKGm2NJLBxkzEOtFVIMZvlmM0l UnmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b="tgk/9BXT"; 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=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt5-20020a170906ee8500b0073d8830e4c7si12912111ejb.954.2022.11.15.13.44.33; Tue, 15 Nov 2022 13:44:54 -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=@gnuweeb.org header.s=default header.b="tgk/9BXT"; 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=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238740AbiKOVap (ORCPT + 90 others); Tue, 15 Nov 2022 16:30:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238722AbiKOVal (ORCPT ); Tue, 15 Nov 2022 16:30:41 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 224E0A1AA; Tue, 15 Nov 2022 13:30:39 -0800 (PST) Received: from localhost.localdomain (unknown [182.253.183.117]) by gnuweeb.org (Postfix) with ESMTPSA id 65640814D6; Tue, 15 Nov 2022 21:30:36 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1668547839; bh=CdwAKtOIgZ+7hsrmxIO9J1z+CoWeq0T4ndm7OWRS0po=; h=From:To:Cc:Subject:Date:From; b=tgk/9BXTYsP/qUfuX+Yn8uf1mQi81HjVXh1cAPZxH8zUVeMTZXqelaSPgicuVhG9O GTJE1KRaixi3uVy3GUK2AOofI+UhYC8Qkq2hsr9FgjFWdNO5SwX8uT0uP3n192vsUY B0Mo9NUyPnw2XyjBH6J9cRDJXgDM9yk9VxpO7HJXdbLMUvrJ4Z3L1UPvI05e/yRZMd dedI9/fu2vlvEfMJWbdonOxstpMI1XxFu3KoyrhWFnWZ3RR8YDHmOaWG0UOPEgKWXH Gpl8SfyZh+uJn3W1ofvb9lLnDuj8JwbijHiuaEGn3Vs587T0gw8iAFFteHIQ0SEcFk NwJnlywLYtsRQ== 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 0/2] io_uring uapi updates Date: Wed, 16 Nov 2022 04:29:51 +0700 Message-Id: <20221115212614.1308132-1-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 From: Ammar Faizi Hi Jens, io_uring uapi updates: 1) Don't force linux/time_types.h for userspace. Linux's io_uring.h is synced 1:1 into liburing's io_uring.h. liburing has a configure check to detect the need for linux/time_types.h (Stefan). 2) Do not use a zero-size array because it doesn't allow the user to compile an app that uses liburing with the `-pedantic-errors` flag: io_uring.h:611:28: error: zero size arrays are an extension [-Werror,-Wzero-length-array] Replace the array size from 0 to 1 (me). Signed-off-by: Ammar Faizi --- Ammar Faizi (1): io_uring: uapi: Don't use a zero-size array Stefan Metzmacher (1): io_uring: uapi: Don't force linux/time_types.h for userspace include/uapi/linux/io_uring.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) base-commit: 5576035f15dfcc6cb1cec236db40c2c0733b0ba4 -- Ammar Faizi