Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2676297iob; Mon, 16 May 2022 03:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdBWFd/jRr7oFdjqHoCR0RFrk7osr10oTjAG4EMyYe97/HC2kbsPJawlik4NoZrkzE5oHx X-Received: by 2002:a5d:568a:0:b0:20d:3b5:6c89 with SMTP id f10-20020a5d568a000000b0020d03b56c89mr6257568wrv.212.1652698281586; Mon, 16 May 2022 03:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652698281; cv=none; d=google.com; s=arc-20160816; b=K3cag1pbIrprXwDeahKUe5tipmA08VrgTJt8zXAG71YSZcShB/YmokJh/htEOX+bK0 Rg2Tw36HljE2wGeK826omaz1ggiDU2VHvkUPj7juwQbaDBw6jUVh6Y3YNdEyhw7M4LAR P3ep1RnSLO2zpyBLsWoxW2Q8BGIhYRo1R6wpN3CnqrOLx3p8mrS4B5XCxROGXdXMVw9d F4Zln9j59kZcxMn5noZRu3vg/cAPqGofYaboLlSKfYrMqXxwz3aKGa9yxd/orD9LRTYh PRezpdtAE82xMXrvrt1kDWRkwhnoAlJwWGGPsCeqY2sUSYNLzT/8+6n5PyGW22VQ0lig XVog== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rB4GSRFuLVvoeQQc4eYld/JEkwZTPI8rf+K6L4jpkHw=; b=sXn2b/dG38M48GF66KOIRXiASJ6JwDDnVnllao12AmOAoG9fyFga45FRpOVLF4S/dp F/GKVJorr9QcNNQ9yjrjee6qCzaiPceKfuRo7UpVnbh16hZK3aRipj9hhN9/dIhPNaBk /jk6C1+mDKEY5+2RkY+zfBHxdxrmeYRzL/Lg2OuLF9PpcgVRq8XEhc4syagpkYRTXuPt Mj2PfSMII5ZmbXqEhX7/cSLgGP42LQNx5n0zG/u5BssArBKmNKziafkg7ApEKOWtRiFT qA3wgKEns2sihX9qewFt9upUzv1O706HcSTUT8bktziRvoQF58U3q2bbrDUmyJegABha 1eaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=5ErsTIgF; 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 m15-20020a7bce0f000000b0038c77be9b9asi12121783wmc.181.2022.05.16.03.50.55; Mon, 16 May 2022 03:51:21 -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=@infradead.org header.s=bombadil.20210309 header.b=5ErsTIgF; 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 S240282AbiEPG2P (ORCPT + 99 others); Mon, 16 May 2022 02:28:15 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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 {