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=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from gnuweeb.org by gnuweeb.org with LMTP id SJlAEKsou2KjUzEALGQddQ (envelope-from ) for ; Tue, 28 Jun 2022 16:13:31 +0000 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by gnuweeb.org (Postfix) with ESMTPS id BF5AB7FA51 for ; Tue, 28 Jun 2022 16:13:30 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel-dk.20210112.gappssmtp.com header.i=@kernel-dk.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=WIFcWcoK; dkim-atps=neutral Received: by mail-pf1-f175.google.com with SMTP id bo5so12454121pfb.4 for ; Tue, 28 Jun 2022 09:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=kgYaAZrlSeo0dmxhHtmkYtWSbK7b0bYeLWDaKtpANxk=; b=WIFcWcoKEVyzE/IG6byQm6qmhMwLxGQmLs10KKKsDrT3pTOQEyO8IEis77KIXpgJ5I lqt+7fb/UNZvmfhtSsqblSJXvAVMAV98PH4RGTI7oqSW/SBPsUo7zUQ9R2SJrBUySHgE YGa/WuduTwXyECwoCx33G88CHKNr7wOnWCEv+El/E7ew6VmiVKaN9rmJI3U6zJl51D3K FPvHdl5FqU/NnqURaXwZIey+5zvF5A4e/+9ugNETQI1x4oRQirXdQW0NN3uTS72noKoK buA9TnnYHSMzIBYBbijCNZRoorFBdPBH30aEfRXuy41yyYQr0aLywP15eFT/2L44Uon2 c2wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=kgYaAZrlSeo0dmxhHtmkYtWSbK7b0bYeLWDaKtpANxk=; b=14EjT1XialvgU8xC/P8TopsRd3xI1mqUu18AVOUYxAjqqcRY1C7kVbxsROZm+HUjjP p64s9DqmsWUCc5cKjLmVOeghrZHYm3Bl3yMK+EcQHE8ug3tJ5eDZDQMO1OrYWOB2PbPN 9oRNxEodcdfKLa5jBt4H8zWq0hIr5ZtcaQ+ccyl4T4zyRFVzlyPo2iHHRFG/kypA4+/H nZXLm2eR7JMmkEHYLeMbXMEHSh7nRWn9LGNxrOR9Ij0XDmPz1u1bcM+ZrQ875Gxf+tZR k0v9Pn5Jux5vIo8M026wjN3LBbMESzLARRId4akYpTck/DxNbxTdoS3L8ekVGJ3BY9SW 5fww== X-Gm-Message-State: AJIora8T+iU1kB6qxxK/KkoYuZ47P9sx2p46sIPFSccvaI8zANuvxEIN fwUTT478ltEI0mL737W0oO9qgzPn68p/XQ== X-Google-Smtp-Source: AGRyM1sITv6OlCcHTJ4NkKJ30PSN4qYEgJyYsGYL0PdaPIHl3HHkppfS3L/eJpfNvYwiKXwSGMJV3g== X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr4280417pfl.38.1656432750082; Tue, 28 Jun 2022 09:12:30 -0700 (PDT) Received: from ?IPV6:2620:10d:c085:21e1::165b? ([2620:10d:c090:400::5:f46f]) by smtp.gmail.com with ESMTPSA id a3-20020a1709027e4300b0016b8b35d725sm2461913pln.95.2022.06.28.09.12.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 09:12:29 -0700 (PDT) Message-ID: Date: Tue, 28 Jun 2022 10:12:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH liburing 2/4] add IORING_RECV_MULTISHOT to io_uring.h Content-Language: en-US To: Ammar Faizi , Dylan Yudaken Cc: Facebook Kernel Team , Pavel Begunkov , Bart Van Assche , io-uring Mailing List References: <20220628150414.1386435-1-dylany@fb.com> <20220628150414.1386435-3-dylany@fb.com> <684dc062-b152-db2b-1fb9-fbd52e0b21e5@gnuweeb.org> From: Jens Axboe In-Reply-To: <684dc062-b152-db2b-1fb9-fbd52e0b21e5@gnuweeb.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: On 6/28/22 10:10 AM, Ammar Faizi wrote: > On 6/28/22 10:04 PM, Dylan Yudaken wrote: >> copy from include/uapi/linux/io_uring.h >> >> Signed-off-by: Dylan Yudaken >> --- >> src/include/liburing/io_uring.h | 53 ++++++++++++++++++++++++--------- >> 1 file changed, 39 insertions(+), 14 deletions(-) >> >> diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h >> index 2f391c9..1e5bdb3 100644 >> --- a/src/include/liburing/io_uring.h >> +++ b/src/include/liburing/io_uring.h >> @@ -10,10 +10,7 @@ >> #include >> #include >> - >> -#ifdef __cplusplus >> -extern "C" { >> -#endif > > Dylan, > > That `extern "C"` thing is for C++, we shouldn't omit it. > > Or better add that to the kernel tree as well, it won't break > the kernel because we have a __cplusplus guard here. > > Jens what do you think? It'd be nice to keep them fully in sync. If I recall correctly, the only differences right now is that clause, and the change to not using a zero sized array at the end of a struct (which is slated for the kernel too). -- Jens Axboe