Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2134214ybc; Wed, 20 Nov 2019 09:23:24 -0800 (PST) X-Google-Smtp-Source: APXvYqx+iTQZdXAFD2PKYGBt1rWr9lLrgszjzum09cTYSXYVqeJ0oMmqjbDGt3gc96sy23j/Y5gV X-Received: by 2002:a17:907:2122:: with SMTP id qo2mr6830368ejb.12.1574270604730; Wed, 20 Nov 2019 09:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574270604; cv=none; d=google.com; s=arc-20160816; b=Lgfh46Q/ACk3kLEzfS98V3vd3KMObX9v2+1YeLIAuL2x/kBllEh2CTkTC5v0QrXwdc RWz8KWcX4FOBLJ6ISBUbSlaN+kz5K0AaaGfms+dU2OrcCykuJ1qNyPwL7XmuMnrSNotX 1tcp14Y9ZNMp/c5413LtfJUB9/NNQ3Qk933jAHKR13BNmEzxmdZ9W7vVvs5jQ2Ge8y5v fHQZg64u0K9Ad+2ZjezqDWvbiBwEq9D/HkEh8fT7Qi4ZAkP8rNnAaL/BCdiB51UwG7zR wgtSo23SqK9PaCColWGRxtqM5gxfnTlIFiYGS1preMhsgIsgjxU5iRZLRl23vcDh+aZi pYyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=3/6jgcHdEdKgS4+aAeKKo6S0l6xP5rAtWK4XeM9Bqug=; b=bClJwKSKIcBTtPxmrrkfEX5SJH7woGctYNb/aurPhPY9NUO+VIhJu9tDqG5Xp3I2gI BCJMY/qqHxgk4QbzkDgvSYRTqW8Bgne/3kPvfFNNYW7IJGLZ9Z3Rv7dhJrIsk0wzAN7w EjY2i3CszdDCXwIGJOrcFIFI+gKIQc0Rb1ao1PKjp9t1ofWABnIn+TnUzchtjFIrzxF+ jSChPbUI9rH1xTona34oxXAMPgy1Vc9gTAAkXcO2oFESX3PBNQHE9ttOVCjSQ9FaM7Mq d5RZINHjB9hcDTmI7S0G5B3TcjKPFRzhSMvo0C6FzykPBcIN940nL/XM93CZxxKaczMB iDYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DCSy8DbM; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf19si4359253ejb.187.2019.11.20.09.22.29; Wed, 20 Nov 2019 09:23:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DCSy8DbM; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729263AbfKTP2h (ORCPT + 99 others); Wed, 20 Nov 2019 10:28:37 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:53002 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730487AbfKTP2D (ORCPT ); Wed, 20 Nov 2019 10:28:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574263682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3/6jgcHdEdKgS4+aAeKKo6S0l6xP5rAtWK4XeM9Bqug=; b=DCSy8DbMtwom1gYme+a7tsyWUOMMil9glBqOf/SI6h1AZtqQOTCUS2tVaCTFiRmA3R9dVj 2/6vWOh+No8XCUJH94VTXh75aB7hF3jRsmmSOffPBkt47GjmGdfzfcwCImgqYj6jVsyFWN 0VpFD16pw0aqlYCxCZMiLJ0KIQJFBWk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-13-sf8VdU13Nlunt_LKR_vcBA-1; Wed, 20 Nov 2019 10:27:59 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4AF3018B5F6B; Wed, 20 Nov 2019 15:27:57 +0000 (UTC) Received: from coeurl.usersys.redhat.com (ovpn-123-90.rdu2.redhat.com [10.10.123.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2849F2AA8A; Wed, 20 Nov 2019 15:27:57 +0000 (UTC) Received: by coeurl.usersys.redhat.com (Postfix, from userid 1000) id 7AEA920A01; Wed, 20 Nov 2019 10:27:50 -0500 (EST) From: Scott Mayhew To: anna.schumaker@netapp.com, trond.myklebust@hammerspace.com Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 17/27] NFS: Constify mount argument match tables Date: Wed, 20 Nov 2019 10:27:40 -0500 Message-Id: <20191120152750.6880-18-smayhew@redhat.com> In-Reply-To: <20191120152750.6880-1-smayhew@redhat.com> References: <20191120152750.6880-1-smayhew@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: sf8VdU13Nlunt_LKR_vcBA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: David Howells The mount argument match tables should never be altered so constify them. Signed-off-by: David Howells Signed-off-by: Al Viro --- fs/nfs/fs_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 3a34c8437917..de852177eca4 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -199,7 +199,7 @@ enum { =09Opt_lookupcache_err }; =20 -static match_table_t nfs_lookupcache_tokens =3D { +static const match_table_t nfs_lookupcache_tokens =3D { =09{ Opt_lookupcache_all, "all" }, =09{ Opt_lookupcache_positive, "pos" }, =09{ Opt_lookupcache_positive, "positive" }, @@ -215,7 +215,7 @@ enum { =09Opt_local_lock_err }; =20 -static match_table_t nfs_local_lock_tokens =3D { +static const match_table_t nfs_local_lock_tokens =3D { =09{ Opt_local_lock_all, "all" }, =09{ Opt_local_lock_flock, "flock" }, =09{ Opt_local_lock_posix, "posix" }, @@ -231,7 +231,7 @@ enum { =09Opt_vers_err }; =20 -static match_table_t nfs_vers_tokens =3D { +static const match_table_t nfs_vers_tokens =3D { =09{ Opt_vers_2, "2" }, =09{ Opt_vers_3, "3" }, =09{ Opt_vers_4, "4" }, --=20 2.17.2