Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1766617ioo; Mon, 23 May 2022 02:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS2AbcLakT3ucyQBnNMtkNhLLPS+xhXrQkmbxeP8htd2fbxoG1LLS6Kvkft/x+vWWq/V5i X-Received: by 2002:a05:6a00:8c5:b0:510:6eae:6fa1 with SMTP id s5-20020a056a0008c500b005106eae6fa1mr22412548pfu.12.1653299388059; Mon, 23 May 2022 02:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653299388; cv=none; d=google.com; s=arc-20160816; b=UCJgPfTjjI9Qu422agE5Ue2Q3P+nUu56Hl6KZ4kbuubjjU64brvKYRm2mu7AqsFKUd YWEdcwATfSwnNWpGwyDtwJ5oZ9aUXs2x8nlVJWSetpPuq6ybs9lQV15uldWjm7j287TR gidcpy6glhfF7jF8dmY3VH4R0+/bMt9Z3q7xgqjHb6QK/Z1ziegmP+gXx1A64N7ZuOQB T+wvqBZxEPozR76i2jmKfD+LRnCpsPheVa4d3cF16iwbsSXvJVQUaBMQd4nofjnxQSQr JSSG9BudaIjVOaN5pUi2k4kprDUJNda4z8nw3MlJZdLxELcKkGitEXR3YCyLRKdfyv4j 6Aog== 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=f9Npzg/wp9lyOIx2RTOTJ3zvfz6qEX1gGiEEa3tFmNE=; b=DvwzKg33e6P1zAQfgSJwF14Y+TNzSdGklinj8aI5w0XaQDyOdXOY6+roKksQZ1lq2M OwNe1W9/fOA2o1F05ZDnlgPSGAOtFE0iMyZsbzapLk+QVpc/BGiJcPKDmwZJxzpPNkns EE+5bvNQvpLxqbTY8aEUOjuJRgJKaVOkd2RNe486KqlxBj+0wH6CohdAnK3fOAhnSANf psHlW5rYRziWNI/3DNHnxtrWBKeC07Fx2KLHG1dOnzbEgEcl+fQfheXgZCSwoN8+IRa4 YrnZJgNl4dO39bRqBehMfJ+K7Jvm9YwPVSQICVeYbxF+Ge16HklHj3qWbZHA4KR1X6ud D6PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fJa5f84q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d10-20020a056a00198a00b00505ab468000si13078881pfl.215.2022.05.23.02.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fJa5f84q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 799961C131; Mon, 23 May 2022 02:43:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233524AbiEWJmb (ORCPT + 99 others); Mon, 23 May 2022 05:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbiEWJlJ (ORCPT ); Mon, 23 May 2022 05:41:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D33B31; Mon, 23 May 2022 02:41:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 79AEF61174; Mon, 23 May 2022 09:41:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13B20C385AA; Mon, 23 May 2022 09:41:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653298863; bh=DRFadpB4rY2X6hgovzUNnaVWTesFRLOkSX2ChXOH8ps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fJa5f84qZw7O+CLPciRB/TVZrJfvfOUfeDeHNyZjvwUGIl0ldUEjexGtnyk02aZuu j628ZcZTxUuDFlxIXORuS8RrAhK4mwTj2b+js3PwKB1LzIqsWLRSfY4ayjn3MIEKWb Cw6GTfg1ifm2zGG4EggTLfPo5gm9BQRiuiyNITgIrhhoLNlQmsCYkdFrV+VhHOH+cd IfB5COu/iSaN3K5vj4d/aZJDj+3UCLCtdNh6Yyc5AeLo0lAvJ87wyZOBqxhAkHaDZl Hg0gkbv0VSSF8J3sqK58qoJeg59rOfV0YG2i/sCNLL4LCzO50i4SXB8Tz06f2jKTS+ Do+Tukx0he98A== Date: Mon, 23 May 2022 11:40:58 +0200 From: Christian Brauner To: Vasily Averin Cc: Matthew Wilcox , kernel@openvz.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Jan Kara , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4] fs/proc/base.c: fix incorrect fmode_t casts Message-ID: <20220523094058.nuj3xsgixzu2amac@wittgenstein> References: <7761c3fd-4fb5-1d65-c2e6-044d689de6b6@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7761c3fd-4fb5-1d65-c2e6-044d689de6b6@openvz.org> X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 Mon, May 23, 2022 at 06:37:29AM +0300, Vasily Averin wrote: > Fixes sparce warnings: > fs/proc/base.c:2240:25: sparse: warning: cast to restricted fmode_t > fs/proc/base.c:2297:42: sparse: warning: cast from restricted fmode_t > fs/proc/base.c:2394:48: sparse: warning: cast from restricted fmode_t > > fmode_t is birwie type and requires __force attribute for any cast > > Signed-off-by: Vasily Averin > Reviewed-by: Christoph Hellwig > --- Looks good to me, Reviewed-by: Christian Brauner (Microsoft)