Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp725644ybe; Fri, 13 Sep 2019 05:23:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7kBwKBdOdwCaT0ODkxcvn6Nb9xdAy9ZtNdO0dEGIH1psaWp8aS5zpU3hKs3E/YVHAv3Fm X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr46517218edb.170.1568377407261; Fri, 13 Sep 2019 05:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568377407; cv=none; d=google.com; s=arc-20160816; b=VJ8WuT7QJCL0XDyHus6HF389N3ff3w7zGrr12Nbme0egJQJjaLDRN2erpJcmlkLo71 dJ78eimtnrS5jaEiGJ30IT0i/jJXvG+6JbgXOPT50iRTqXy1lJgQv8ZO9reSKM8EJvvt 5wWKun8/bbNL5bXW2I52OnrT+cRYimZdCAtLgP7BJMA4U0sSf+SahanFViMAxGERXhC5 GWR6RTcscZyd3fZuyztzxdqVWXhvOmwErGckQAZ7EQfLhL6LbyK32p+lXicM/aw5oF7C GzEAzi33c69Pw+U2w2MAkYXYAhcTohF8CqnA2CIH6689ixQL94D+c9uoIVvcwBTC/IlO Zh3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=mPo8YKC3Oo23qjWRfTQt3cIuUC2SG+gctuYWWCpd0+o=; b=xbzVAQHuktMM5FhwqqdTiwkEQbrwoOq7TD7CVRiMCPACc12szXcCEU4lUPLJT/7uNJ l96pQn81BvfXs1WeQGgmlA4eC+b0Xi74PvtYyFnWbaa2BKScE542326LRVoQFCKuqh9+ +BmhZTvA8dAD7MYYKEvJeVo1OEOnpX8nzgBvAvcj9xKfwuJCiRrtVJsjdvmTu6leQnxe z8Db390tZFuhaM6HeP5EcC+/lPP332b6VveVEN8/Entd/t4zP4z+dmUwTUX70ul1XMZ+ LgIgYv9buHdhF3X6DmV44KKIl1yMPCr9EbmQzvSMjoVtRGOQwx4aR3atGHXl02VCTFHF DSFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 f33si17634421edb.281.2019.09.13.05.23.03; Fri, 13 Sep 2019 05:23:27 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388359AbfIMMTt (ORCPT + 99 others); Fri, 13 Sep 2019 08:19:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41454 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729673AbfIMMRu (ORCPT ); Fri, 13 Sep 2019 08:17:50 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 45E6B87521A; Fri, 13 Sep 2019 12:17:50 +0000 (UTC) Received: from coeurl.usersys.redhat.com (ovpn-122-52.rdu2.redhat.com [10.10.122.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 268296061E; Fri, 13 Sep 2019 12:17:50 +0000 (UTC) Received: by coeurl.usersys.redhat.com (Postfix, from userid 1000) id 03C3420D46; Fri, 13 Sep 2019 08:17:49 -0400 (EDT) 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 v4 17/26] NFS: Constify mount argument match tables Date: Fri, 13 Sep 2019 08:17:39 -0400 Message-Id: <20190913121748.25391-18-smayhew@redhat.com> In-Reply-To: <20190913121748.25391-1-smayhew@redhat.com> References: <20190913121748.25391-1-smayhew@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Fri, 13 Sep 2019 12:17:50 +0000 (UTC) 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 { Opt_lookupcache_err }; -static match_table_t nfs_lookupcache_tokens = { +static const match_table_t nfs_lookupcache_tokens = { { Opt_lookupcache_all, "all" }, { Opt_lookupcache_positive, "pos" }, { Opt_lookupcache_positive, "positive" }, @@ -215,7 +215,7 @@ enum { Opt_local_lock_err }; -static match_table_t nfs_local_lock_tokens = { +static const match_table_t nfs_local_lock_tokens = { { Opt_local_lock_all, "all" }, { Opt_local_lock_flock, "flock" }, { Opt_local_lock_posix, "posix" }, @@ -231,7 +231,7 @@ enum { Opt_vers_err }; -static match_table_t nfs_vers_tokens = { +static const match_table_t nfs_vers_tokens = { { Opt_vers_2, "2" }, { Opt_vers_3, "3" }, { Opt_vers_4, "4" }, -- 2.17.2