Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp545110iob; Wed, 18 May 2022 07:45:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySAx6z//NSmx/4vPF3ohJ1qicHlpMiISZLzdsvrQIYJcwb05FbXGJGVTaWDTSzA/8JwNC9 X-Received: by 2002:a05:6a00:234f:b0:4f6:f0c0:ec68 with SMTP id j15-20020a056a00234f00b004f6f0c0ec68mr28451509pfj.14.1652885111165; Wed, 18 May 2022 07:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652885111; cv=none; d=google.com; s=arc-20160816; b=qHA4aQnowq1SlghK+c8xZxszXQcSgF2gUBLapN0kz2g3pIBHQZJ3YbbH4RIizv1FDG 1rxtBvHNYjMp0uwQ8Q0EfJZuHeI59wGk6hCxpCs71VBSwHf9ZNEoL6GdMfrfhwDzmK32 82AlXBL6oq7Js97jecyTzJ50AUfumAlyIjepH9nNcjn46vOyOSbb1uLLwkOSq9jMGg0x /6e2f7pXs8B5LxJuD0P8/wntu95jkkXPzRSx5WKacCURyD/QcnzSZ+w6cvUEoFTR+YcF ViBB++2/xhFvr1S3ZHYWTbrumMFdVMiiyks+/XyH2+mFAX22Y9MmDNN5K4kwNgaz7b/4 Qj4Q== 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=CZOfogZtEmAjZ7t4V2kiip+iTyiLhaAlHvg8XZny9LM=; b=GK+b/XINJjM1hpuQZjJRrFpVLkmAb2J0TiRdrFN4XrExRrNyKSGS6n+wDWPIun6vIV rwoz87xrCwgooXzbhK7BmX/Q7d2kEtNdQ9AEqfZ+/EBQVGfncinKZYB4k1wbvkibtRIo GuLECEedgrJdSvqbIPSqRadthN8+tmhKLT51lLvkuUls7iN9uvIhGcFxXPvJp7R3GORp MF1COVw24LV0Kpcm/u4vlJTSgU1UE1TDpb8eqUo3TjjkwO44IyTECbpCFfdnCraEj5mL BEds9zCFiB6MS+JF322TKTRYoaXQxoqY6CduBHBDuhZ4wQkTjBruyCW6DSs5PysEy0UT 68Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XDVphIpl; 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 om4-20020a17090b3a8400b001dc443e79a2si7498459pjb.8.2022.05.18.07.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:45:11 -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=XDVphIpl; 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 694081D5037; Wed, 18 May 2022 07:45:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238825AbiEROpA (ORCPT + 99 others); Wed, 18 May 2022 10:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238758AbiEROo6 (ORCPT ); Wed, 18 May 2022 10:44:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2D71D4A34; Wed, 18 May 2022 07:44:57 -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 ams.source.kernel.org (Postfix) with ESMTPS id 177EBB820EA; Wed, 18 May 2022 14:44:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82A20C385A9; Wed, 18 May 2022 14:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652885094; bh=sLZDBfRImQRmLZ+nI1Q+0xE86Tid3u1WRmhso6KIs04=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XDVphIpl9/QBp0ieNsVrXN9pM0JBXP1+a6fSIa9IwYiK1Ue9nFlFhrp4aYR/MZGx5 TN+XaMT+fkSOa7UEkWRsAZpnUVek0git3Bx9usHdDRfZ4+mi6vajkKc/MupbS0rGBX pnOvucmaRLfYukQuIxS6zIBbdjKisKhZx/g476y3sd8FnBajmZFkyu6X1W9vW+6lJh WB7M7M8woupFPRjtK8mOPQ5Jlq5a5WfmY+SyU4ewKJ5CYlcxU5VLYz1vCxk4rLEjV/ R3eYhf8+QiewXAZQ9Biwc/GLQONfp05Sl1kDkkMcSjgae1EQZOq8IVxPWwmfiZ3SVH AHGzbZUe3x0HQ== Date: Wed, 18 May 2022 16:44:49 +0200 From: Christian Brauner To: Vasily Averin Cc: Christoph Hellwig , Jan Kara , kernel@openvz.org, linux-kernel@vger.kernel.org, Alexander Viro , Amir Goldstein , Matthew Bobrowski , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2] sparse: fix incorrect fmode_t casts Message-ID: <20220518144449.2oa464wnx4p6ovom@wittgenstein> References: <86e82d40-0952-e76f-aac5-53abe48ec770@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <86e82d40-0952-e76f-aac5-53abe48ec770@openvz.org> X-Spam-Status: No, score=-2.6 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 Wed, May 18, 2022 at 01:49:07PM +0300, Vasily Averin wrote: > Fixes sparce warnings: > fs/notify/fanotify/fanotify_user.c:267:63: sparse: > warning: restricted fmode_t degrades to integer > fs/notify/fanotify/fanotify_user.c:1351:28: sparse: > warning: restricted fmode_t degrades to integer > 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 > fs/open.c:1024:21: sparse: warning: restricted fmode_t degrades to integer > > Signed-off-by: Vasily Averin > --- Looks good to me, Reviewed-by: Christian Brauner (Microsoft)