Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp5246pxy; Wed, 21 Apr 2021 16:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIign7Q0ao5bc/wyWFoMH21Njn6NnkqDdd6NF7/XGATi/0TmVaw9dTja+ImBRVqsNh9hG6 X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr517191edc.94.1619048550302; Wed, 21 Apr 2021 16:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619048550; cv=none; d=google.com; s=arc-20160816; b=iR5qgyACGGpcfYfEQFCpZpFnmra4VsMGgKfsnW4uwQgligCTHKeXRBRDwljbDW+8R/ SeNUaqf5RmIQ9jumWh7X0jdMyLVlOTaeHRwinmqHh8/7bUJuHC7rpCBc3yp0ljJtzYVT ZcYZ+gbw2LMaGJwI0ZEYrfC8JInqDFU/b8FcFnuVnixo6CIPFiIwDLFIUsIaWrcUevO5 FmC5WGIqOoOKIAIscTA+p0hh+m6wEBOEey4B58o/tJ9uJkmxh4k0d4a2I3yKRsHxck6g wTEVlmjwyyKm1K6+K2MvGm7nOH7nB9tRpMZgJwT7stKmRFlnkQ6oSmr2Oh3rJwofxE6Q 4U8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ITKgQhPW0DxCESjq2dcU4lJnbwE0iVx843uGpWMgdQk=; b=mlHxfmHGhxcf88H8qgaZ/xZRiF18vQXIkiO8pxvAbxYTwrDgk2O6qTrSrTrd8c7vHq Y1AJTV42GGmGbEufGlQoloAPiYi+gBVu5JGQzszFrmeMk3sMu7FOg2VeehjpH5cg5u+P ky2imKNw1TX2OaTKr7j9GZKKH0WmRs4HDfhqf49ZKq6u3kpSmeTWc6f5eNAtkc1f+TEf 1G4Q7fM140otGpwwGhfggkOwWMb+V8WDCX8g+YNYzml6ujklpyprUO5fK8XdoQ6J9NR0 zQYtQEosfin6iud/MBzG+epbNR2B0nipGCIA/mAc7i/OW7UuT7yeJWi6mcwmYb6Uc2Uz Ibrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zr4634N9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia20si646425ejc.108.2021.04.21.16.42.07; Wed, 21 Apr 2021 16:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zr4634N9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235446AbhDUP4l (ORCPT + 99 others); Wed, 21 Apr 2021 11:56:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:43882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234894AbhDUP4k (ORCPT ); Wed, 21 Apr 2021 11:56:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F183B6144A; Wed, 21 Apr 2021 15:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619020567; bh=h4ycg7tPvAV4rChpkWI+ZqgNAiIdzxlW9glZog3vL3M=; h=From:To:Cc:Subject:Date:From; b=Zr4634N91XAYwOVh8VaF//ANZqFSi+c80iRWwmsPQOiA8O1Hsv40dpM8FssZQqqum HYBO7kcl/W44bicj8zvAIg/lrTwviIm4rv9C5b0KseoKE+zYkOngsviPxMcqmBszb5 WHTIr4oKig9OPQNpNrWS7QMyyVxHIG2hip+QlxRdLsCHv0uv3OEscRcUEXbrgD/Lq5 Q+u3FT6P0xd54EnC0dFaiORH7Sx9LFl8ozHaZlazeLDZWiAnBaF5wlQubFPS6KrRZr 3dPx6L8UeLX04Cy0KbsFGSFr87JhmfIlXY+Sduh8KeaIQOe+8uO7NU4QGSjaKuMjlG FfRO6iHziPtqA== From: trondmy@kernel.org To: Dan Carpenter Cc: linux-nfs@vger.kernel.org Subject: [PATCH] NFS: The 'fattr_valid' field in struct nfs_server should be unsigned int Date: Wed, 21 Apr 2021 11:56:05 -0400 Message-Id: <20210421155605.225693-1-trondmy@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust Fix up a static compiler warning: "fs/nfs/nfs4proc.c:3882 _nfs4_server_capabilities() warn: was expecting a 64 bit value instead of '(1 << 11)'" The fix is to convert the fattr_valid field to match the type of the 'valid' field in struct nfs_fattr. Reported-by: Dan Carpenter Signed-off-by: Trond Myklebust --- include/linux/nfs_fs_sb.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index d28d7a62864f..70057b2e606e 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h @@ -156,6 +156,7 @@ struct nfs_server { #define NFS_MOUNT_WRITE_EAGER 0x01000000 #define NFS_MOUNT_WRITE_WAIT 0x02000000 + unsigned int fattr_valid; /* Valid attributes */ unsigned int caps; /* server capabilities */ unsigned int rsize; /* read size */ unsigned int rpages; /* read size (in pages) */ @@ -191,8 +192,6 @@ struct nfs_server { dev_t s_dev; /* superblock dev numbers */ struct nfs_auth_info auth_info; /* parsed auth flavors */ - __u64 fattr_valid; /* Valid attributes */ - #ifdef CONFIG_NFS_FSCACHE struct nfs_fscache_key *fscache_key; /* unique key for superblock */ struct fscache_cookie *fscache; /* superblock cookie */ -- 2.31.1