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 2C7F2C433F5 for ; Mon, 23 May 2022 03:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiEWDsj (ORCPT ); Sun, 22 May 2022 23:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiEWDsi (ORCPT ); Sun, 22 May 2022 23:48:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B10B19C0A; Sun, 22 May 2022 20:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=AW3o8JWyoT5r8/PPhDVW+OSjKZg11kX8S58HsM9Sbls=; b=ui6gRYFqTT/Fj0eCLLFo4lkNRT yzWjEUS8i+kwCSW8rbJu6t86c8k0y/y0Br+rWIbAbtZrXouDS6O+hz1rWgJP1pC8fm2WKpzj40Wjk xTyD2JeVIlzA8yDRmHFRKm4bbfNvlapmYdPWyRSsXWvPWBIQvhb1npwA52gQOBGSIHNbt34qyWv1q rAqiDUfp8bnBUuBKMYM23LfgbCpAM10DY9P73cX8ZUPnkRWJNys4MOUPVLh0hbs+S0PLTdIerPmIr ZuWAktiV+VvH2NGvol0J96GVlItQxAfxw2tyaKizJxqpH+CQCWTsKAKslY6n/fUgkDpNrNSD5xfmI IM+xYadQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsz3Y-00FpXW-PY; Mon, 23 May 2022 03:48:32 +0000 Date: Mon, 23 May 2022 04:48:32 +0100 From: Matthew Wilcox To: Vasily Averin Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4] fs/proc/base.c: fix incorrect fmode_t casts Message-ID: References: <7761c3fd-4fb5-1d65-c2e6-044d689de6b6@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7761c3fd-4fb5-1d65-c2e6-044d689de6b6@openvz.org> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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 Reviewed-by: Matthew Wilcox (Oracle)