mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-22 11:04:50 -05:00
NFS: Constify mount argument match tables
The mount argument match tables should never be altered so constify them. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
committed by
Anna Schumaker
parent
9954bf92c0
commit
e0a626b124
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user