Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2451871rwr; Fri, 28 Apr 2023 10:28:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oMXtSLEY+zpmNwGRCQ5yRdkdr+c2rMuOW6Vz7MUccrVQElAsGwXxS8RQ9+c+nM2Ksrd9M X-Received: by 2002:a17:90a:3cc7:b0:247:bd63:c3af with SMTP id k7-20020a17090a3cc700b00247bd63c3afmr6225189pjd.8.1682702881178; Fri, 28 Apr 2023 10:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682702881; cv=none; d=google.com; s=arc-20160816; b=ZkjpgfVKB+o+tMrSPf9ycUlSEe5ptbk4/IjZT0sWXHVXkko2e3ZA4HE0HkCboRPeWc y+PN8ic93O4wQFeJZIyrx8ABUymNS4w3u1sXsswnYYL3PjnQGzfGaFXpso29q01yVRF+ NtHNxnET/p/pkvbAdmG5Ct6nrERGQvkRJT/kVQvsPHuJg/GjaDv2GFkAHeKm+GY5H5Re i91iKsvpP8nLBCGlxMCRaMm9RGcOB0LbYroIsNWVqJgx9F1A/8QZymqBP6b1Lu6XMNrf +130j7yHmrmmZaMzHW/kj75n0W0lTX9pm5P1uIgjvBry3oJ9KT/T3YpxKPaFRAMCWGLC xmUA== 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=Rh6V4tYiLlllRSr0PfsNXhLUe9cYUsXg2EQxXpgmKK8=; b=zERJ/VlBRO5l81lHGLRc2kX6x/HCSO6pTIQ2qH87ajaIa8rjYDn1iaLA2lOa+U+miQ JOEYZyXePOSpPjhRrnnQk7gX+F4nAX5GI03By5F0qgTiQ6bUUvtE479hdH7X039QkVy6 ceBtnfJLB94wC35TSIgxBVfatXjefCz75akYToYQfpkMmz80FSaBj73WWEq8v+MRdJ3v wXwUMJoJJLGlofjs09e/9aSu3Fp8/w6UycTuErRspDA3e1ropitPy5a6oFDL7E6/GMkh +M9JinoQFdHMX5qNkEcCFRk3N7oApP9MTGVCLH2/VjzuVqy5c6RULx7PNLfSa+g7du4W OToQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20221208.gappssmtp.com header.s=20221208 header.b=q6MUYFZZ; 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 k19-20020a63ff13000000b004fb98290dbdsi21926076pgi.50.2023.04.28.10.27.49; Fri, 28 Apr 2023 10:28:01 -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; dkim=pass header.i=@kernel-dk.20221208.gappssmtp.com header.s=20221208 header.b=q6MUYFZZ; 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 S1344467AbjD1R1k (ORCPT + 99 others); Fri, 28 Apr 2023 13:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346093AbjD1R1g (ORCPT ); Fri, 28 Apr 2023 13:27:36 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F25684690 for ; Fri, 28 Apr 2023 10:27:32 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-760dff4b701so359839f.0 for ; Fri, 28 Apr 2023 10:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20221208.gappssmtp.com; s=20221208; t=1682702852; x=1685294852; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Rh6V4tYiLlllRSr0PfsNXhLUe9cYUsXg2EQxXpgmKK8=; b=q6MUYFZZqhT76ANijpfoaVA0+tjHHNSOMXOqFpKYothGCxai6tDgo9w2NZDUEzjHpK Kt7xDBwNDQjknpnwoCG1kbz09vVe8mPb8p8WSePXvS2bpSfUXvMCEVMMc6yuadU6CX7U G8z7LeT7M984KfYVP0u5fxprBvNwvnebY2yDKrWGsLBy7iuwHjSeClT2AucE2J1JG7Qs /SkTgEzOlgADHXS7UXQKbBIsiL6z7uFLxM+1XlUD8Ss1VP4lAtbUpiij18c8s0FSXY4B RlFTkhAVBl1GvPdPsfSGRWBjQC4PAXLyQQRRf6b+58D5hoz3Gmf4EwJqtQu6uoF0Bhh+ eFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682702852; x=1685294852; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Rh6V4tYiLlllRSr0PfsNXhLUe9cYUsXg2EQxXpgmKK8=; b=ULZfR32QbujmMG4WcOgCOUz7+oTV/+nWV4fDFm+TU+mYyW85k4OZbma6x7CGpFttOC AHS6Y4C5V6rXOCy2HPmMZsA4YFAl2OGrri1LP26c4KMPkJWKpgbCLjIcHYfkospqvhDX 9bVGwZkoiCpFTJEfzLiBCgKK6/7T6Q2lWsEc2qw0qmEMp8idgggp71RA0NraLAVamNjN +8pZ3qsh22SSnYOqLa9CzGWbSdtAVrc8u5xBUsNe4xYRyjd3Djt1V4AQbyG1N1eWDf/r zroCkflOk3tgkus6RG63bsqlQr+dkYp6aIm2RwDTrTXK0Jfs3h1XBa+k29E6Kci4y0Ag Gcuw== X-Gm-Message-State: AC+VfDyXsnJYGhU2MpzrNB4Av9jExydqp6YQAwbU8JP04mL+L2/cqPP5 1sEsARTH3PBo3br3tvo6ax8W/g== X-Received: by 2002:a6b:b412:0:b0:763:86b1:6111 with SMTP id d18-20020a6bb412000000b0076386b16111mr2820503iof.2.1682702852302; Fri, 28 Apr 2023 10:27:32 -0700 (PDT) Received: from [192.168.1.94] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id d9-20020a026209000000b0040f9a41e06asm6398207jac.0.2023.04.28.10.27.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Apr 2023 10:27:31 -0700 (PDT) Message-ID: <786c3e8c-5fc3-9ee0-e026-e32a4b061eee@kernel.dk> Date: Fri, 28 Apr 2023 11:27:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 3/3] io_uring: Remove unnecessary BUILD_BUG_ON Content-Language: en-US To: Breno Leitao , io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, asml.silence@gmail.com Cc: leit@fb.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, sagi@grimberg.me, hch@lst.de, kbusch@kernel.org, ming.lei@redhat.com References: <20230421114440.3343473-1-leitao@debian.org> <20230421114440.3343473-4-leitao@debian.org> From: Jens Axboe In-Reply-To: <20230421114440.3343473-4-leitao@debian.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/21/23 5:44?AM, Breno Leitao wrote: > In the io_uring_cmd_prep_async() there is a unnecessary compilation time > check to check if cmd is correctly placed at field 48 of the SQE. > > This is uncessary, since this check is already in place at > io_uring_init(): > > BUILD_BUG_SQE_ELEM(48, __u64, addr3); > > Remove it and the uring_cmd_pdu_size() function, which is not used > anymore. > > Keith started a discussion about this topic in the following thread: > https://lore.kernel.org/lkml/ZDBmQOhbyU0iLhMw@kbusch-mbp.dhcp.thefacebook.com/ Just turn that into a: Link: https://lore.kernel.org/lkml/ZDBmQOhbyU0iLhMw@kbusch-mbp.dhcp.thefacebook.com/ instead. -- Jens Axboe