From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EC4DC433F5 for ; Mon, 16 May 2022 06:28:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235673AbiEPG2N (ORCPT ); Mon, 16 May 2022 02:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239936AbiEPG2M (ORCPT ); Mon, 16 May 2022 02:28:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5809427169; Sun, 15 May 2022 23:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=rB4GSRFuLVvoeQQc4eYld/JEkwZTPI8rf+K6L4jpkHw=; b=5ErsTIgFUwyLBBOzQryGfX6cPA UN4ZwTWUoREruPBX/CfxuNhllpqtCA0Fl2kaxLl152e/yvzVtAuX/xnVrAdcxB1TLV6RrVq9RT4Il dWFoAFl7EbnHO4Q01twYofRY6VklciT3Q48Co7X+iz7+ndVb+WWoJeXMC9frTM5eX7xDesPQD7YY+ E1C1k1n8T4FgLXNnDsegRb424M3nlwVKZ4vJ0fsTnTCf6CzO5s2UQfkEfzs1PCxxgpR7Uwi9c1H67 Rxt9fFX1Df1yaGJKZzczyd+S6jSVSBRnLcRhMZpYi0E2+g1cTC+7h2glT8Qe/V+hcQSZjqWlpvnvj Sn9v5+Kw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqUDA-006C1S-Uv; Mon, 16 May 2022 06:28:08 +0000 Date: Sun, 15 May 2022 23:28:08 -0700 From: Christoph Hellwig To: Vasily Averin Cc: Jens Axboe , Pavel Begunkov , kernel@openvz.org, linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar , io-uring@vger.kernel.org Subject: Re: [PATCH] sparse: use force attribute for __kernel_rwf_t casts Message-ID: References: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Please stop sprinkling random __force casts. 95% of them are simplify wrong, and the others need to go into properly documented helpers. The right fixes here are thing like: diff --git a/fs/io_uring.c b/fs/io_uring.c index 4479013854d20..a5d8b5109d3a7 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -585,7 +585,7 @@ struct io_rw { struct kiocb kiocb; u64 addr; u32 len; - u32 flags; + rwf_t flags; }; struct io_connect {