Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3269262pxb; Fri, 12 Feb 2021 13:53:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVipBdXBfCddlCFf/PXLI0keJat2RBfjfEeDryEvI1BzrwB7DoQsTsfJhRgRa0KmH7Dxpt X-Received: by 2002:a17:906:2ac1:: with SMTP id m1mr4920043eje.149.1613166780116; Fri, 12 Feb 2021 13:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613166780; cv=none; d=google.com; s=arc-20160816; b=rcKLnpMca8vsmeFmFn3E573Yx3ch3IW5EUQwCaILYG5Ncqf6LGVpeHHntrjmkywdos V3/RMGM4EoCOc4zethZ3IWW3ftrXf2MjqEd6XJ3GQB9ikwlOh6scSpGrVZ4tibACLRcO xj9HVxJ29oXsaFvR6ULO3ZBuA43rMkkZnIUICw/zgI4TXvrIbfyKsScCX78x4ephLph2 njpLHbQW3iEQf8b8qu+g2w+2jnBn8xhzwD83GSFmi/djAZWhgbr7D4Ecc45cpzRNcK6O zTU1gpQOZai0FndvzVPfjxUr02jnjfsU7DS8aHrqcl4lGBhSyp2MSPTHhL+6yDqjiWYt kF2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7bYDgWfo30oHHLUZvLGnJVazFIKj24pChVEamWx09Ng=; b=ngnN/638nodAJb46QcKdxDlAeFhdO6RP11R2DqvfyY73xxqt5bVawt3izgkTuQJPdt 5cliJaHoSsCKrSXpqSVRSGUiDpaZFSlBWOQuDjNIo/MtQbq3gyoTOWmOzKiaw5SfiM6p 0QST+cFbtmemEDZSGFSmwXhPXcjVEaFC0z9PXDHWh8xQNAlyC6dm+dPBaijgjSUa1DuM R4a85WrDmmnegFr3PmyGNQocZcIYhfh0U7yb6W85HkQPvYNiHWRDBnvzoF05pB3gXKYk xGDsEtGDKPZ6Tkwg4uHj/pnTDsLYwS109QQkJxOHWgfdignGtIZWr54eXZYgBMgvHTyC 34TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JfFztLL8; 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 k5si7036439edq.211.2021.02.12.13.52.30; Fri, 12 Feb 2021 13:53:00 -0800 (PST) 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=JfFztLL8; 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 S229497AbhBLVuh (ORCPT + 99 others); Fri, 12 Feb 2021 16:50:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:36310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhBLVuf (ORCPT ); Fri, 12 Feb 2021 16:50:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F0E764DD7; Fri, 12 Feb 2021 21:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613166594; bh=jlY8SvudMMwEdrQoncRRd18y/pZZSxBu4X2ESFMLdKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JfFztLL8mwyWmTMpAaDgiRugj21IcB512iKt0w8SryaSyhNlcAUUFvGEzeJsKkzrI qlRGJtpxPgIvIweP05IT+Fvzw0ow4dsC7F0YeCnQKYzyE0WoR/nV4u4xJGMc6jBIuv zYW1IwLglfLqxI+W1VVFFxLqJIMYKOXEGTI37CqFZd68Zcc6jR8mBCSgHlO02VwJL/ zfQEjpgeJQzbYmDjX1eHuasGaNuN/o2JUg+Do0Vytx4Um5I5xspt8aKYbEu03NOVXn 9qGwrpDDYPOsHbh4cVX/tpnvqLkiMmAVFy7pHd3i/eyPMpDf1zGgmrLPFt62vsjVDC zxvR7YfsO5CmQ== From: trondmy@kernel.org To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH 1/3] NFS: 'flags' field should be unsigned in struct nfs_server Date: Fri, 12 Feb 2021 16:49:47 -0500 Message-Id: <20210212214949.4408-2-trondmy@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210212214949.4408-1-trondmy@kernel.org> References: <20210212214949.4408-1-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust The mount flags are all unsigned integers, so we should not be storing them in a signed field. Signed-off-by: Trond Myklebust --- include/linux/nfs_fs_sb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 38e60ec742df..962e8313f007 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h @@ -142,7 +142,7 @@ struct nfs_server { struct nlm_host *nlm_host; /* NLM client handle */ struct nfs_iostats __percpu *io_stats; /* I/O statistics */ atomic_long_t writeback; /* number of writeback pages */ - int flags; /* various flags */ + unsigned int flags; /* various flags */ /* The following are for internal use only. Also see uapi/linux/nfs_mount.h */ #define NFS_MOUNT_LOOKUP_CACHE_NONEG 0x10000 -- 2.29.2