Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12719520rwd; Fri, 23 Jun 2023 09:41:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jhaG3ARDM5sy6xSS8I7MuXM0WqLEBEtFaFC/5K2SDznVNKlODI2+UEsfgGyzQoB09VbUe X-Received: by 2002:a05:6a00:1387:b0:668:71a1:2e86 with SMTP id t7-20020a056a00138700b0066871a12e86mr17765331pfg.7.1687538501860; Fri, 23 Jun 2023 09:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687538501; cv=none; d=google.com; s=arc-20160816; b=XZOlaqrFfmi561dKqN43yQgEy38bU71v3bdfYDrrRchXgYofKCw98dAxcBiMdL8fD3 SymLzL3LsSM563d1CkHOdydbzV8YjWGJ70+Q/lXRBPobJjIxx/goFRarYscsQSPYcIJk xzqSU7b01INbxRLQ0dlCa8LIZ/A/Wtkb8Wzifl8sZT6qDgfX8reLh2CHxwO95mpl4C3x ZnfB7w6fr1ZXRscpv24njvsGbXsOrR07DxA/3h5dbA7xcE5UkH2wXzRyyjSKbhuYMd+a WtIeRytrfRDdnPbFkL1+C5gY4rH2SVFy2SiM2l08XkZ0flZy7oTGSyLwhzOQwbduGpfr m5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uh2s7pfKdwDVYLhDB6xiD5fS/jgZntuMD4WczwZds+c=; b=bhJMCidTmexVFSvm3k/yRfpAuSWb081JtefZWhJ2qAneoUETsvprnmdTqqtLIm9vuZ cDq9dd4L1behoth8SsVN5DDstPw6wnL+GKsSnkAvVCTDtcyO0ICLwvmmThPF1f4eOdQP Pb3pYcBgEeM1x4m0gvuZkxmLEsxtXuBo4f2uBHpmp9tRToXLKzadmiHhNDXe7Q6bUj7j D6NLyf5Bs6WBMK17ySgg1Iru4+nqMwMNtuCgTYuiv14JLJFRGYw3kbqCTlDk0nGuvXsB eNHZ3OQjrUe30zmOqwZWtU/DO0fbbEEVGcRe6WS366Yuxo36itIODFNYO3v47CxaRwyi gP0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 186-20020a6300c3000000b005538a3e801esi2771824pga.535.2023.06.23.09.41.29; Fri, 23 Jun 2023 09:41:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231544AbjFWPz4 (ORCPT + 99 others); Fri, 23 Jun 2023 11:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbjFWPzy (ORCPT ); Fri, 23 Jun 2023 11:55:54 -0400 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1572210F4; Fri, 23 Jun 2023 08:55:53 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-312863a983fso873188f8f.2; Fri, 23 Jun 2023 08:55:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687535751; x=1690127751; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uh2s7pfKdwDVYLhDB6xiD5fS/jgZntuMD4WczwZds+c=; b=W5cTMJDIB4AEdIXR8/zwjnYTvAutrUXDTc+YRmfzDuUBOeeEj2FaTjqhFRaWVypcQu BX7Nb7cQdM6oL1+5N6wKxUp14uAm1T/mWmcOzAPnDvfDjcXfE4AgSpsfHPliwEffVlyn kaHdAOSP5SdGjAH2ffpc5wN0yYBhph/KU7+4Ftk3ttCIm2hX7XI2LAGsQNP3P8/B/RDW UYZwde5psvEs00sMAB+sc5JxCgL56VSG8IjoX5xGmb4NEMgAPyl8h7XisjeZGWutvzgZ IEoTJmmbBni6BsumIS9MCa9/zfNlo0j373s0Q3QviwJ612p1LDs0Z7olR1ZhRiq0QGYD R2VA== X-Gm-Message-State: AC+VfDxQLCzvXxlkBhZ/J+2F3fke5I8Y0T1xmmY/FObZgfS1GhbnJC06 HVltNCx/Ebq2VU8WSRZrWPc= X-Received: by 2002:adf:e982:0:b0:30a:f3ca:17bb with SMTP id h2-20020adfe982000000b0030af3ca17bbmr14850056wrm.35.1687535751248; Fri, 23 Jun 2023 08:55:51 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-117.fbsv.net. [2a03:2880:31ff:75::face:b00c]) by smtp.gmail.com with ESMTPSA id r15-20020a5d52cf000000b0030af72bca98sm9849120wrv.103.2023.06.23.08.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 08:55:50 -0700 (PDT) Date: Fri, 23 Jun 2023 08:55:48 -0700 From: Breno Leitao To: Greg KH Cc: Jens Axboe , Pavel Begunkov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:IO_URING" , open list , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH v3] io_uring: Add io_uring command support for sockets Message-ID: References: <20230622215915.2565207-1-leitao@debian.org> <2023062351-tastiness-half-034f@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2023062351-tastiness-half-034f@gregkh> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Jun 23, 2023 at 08:39:02AM +0200, Greg KH wrote: > On Thu, Jun 22, 2023 at 02:59:14PM -0700, Breno Leitao wrote: > > --- a/io_uring/uring_cmd.c > > +++ b/io_uring/uring_cmd.c > > @@ -7,6 +7,7 @@ > > #include > > > > #include > > +#include > > Is this still needed? Yes, this is what is providing the definitions for SIOCINQ and SIOCOUTQ. If we don't include these headers, we get the following compilation failure: In file included from ./include/linux/socket.h:7, from ./include/net/af_unix.h:5, from io_uring/rsrc.h:5, from io_uring/uring_cmd.c:12: io_uring/uring_cmd.c: In function ‘io_uring_cmd_sock’: ./include/uapi/linux/sockios.h:26:18: error: ‘FIONREAD’ undeclared (first use in this function); did you mean ‘READ’? #define SIOCINQ FIONREAD ^~~~~~~~ io_uring/uring_cmd.c:171:32: note: in expansion of macro ‘SIOCINQ’ ret = sk->sk_prot->ioctl(sk, SIOCINQ, &arg); ^~~~~~~ ./include/uapi/linux/sockios.h:26:18: note: each undeclared identifier is reported only once for each function it appears in #define SIOCINQ FIONREAD ^~~~~~~~ io_uring/uring_cmd.c:171:32: note: in expansion of macro ‘SIOCINQ’ ret = sk->sk_prot->ioctl(sk, SIOCINQ, &arg); ^~~~~~~ ./include/uapi/linux/sockios.h:27:18: error: ‘TIOCOUTQ’ undeclared (first use in this function); did you mean ‘SIOCOUTQ’? #define SIOCOUTQ TIOCOUTQ /* output queue size (not sent + not acked) */ ^~~~~~~~ io_uring/uring_cmd.c:176:32: note: in expansion of macro ‘SIOCOUTQ’ ret = sk->sk_prot->ioctl(sk, SIOCOUTQ, &arg); ^~~~~~~~ make[2]: *** [scripts/Makefile.build:252: io_uring/uring_cmd.o] Error 1