Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee24eac3 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by J. Bruce Fields
Browse files

SUNRPC: make cache_detail structures const



Make these const as they are only getting passed to the function
cache_create_net having the argument as const.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ae2e408e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ static int rsi_parse(struct cache_detail *cd,
	return status;
}

static struct cache_detail rsi_cache_template = {
static const struct cache_detail rsi_cache_template = {
	.owner		= THIS_MODULE,
	.hash_size	= RSI_HASHMAX,
	.name           = "auth.rpcsec.init",
@@ -524,7 +524,7 @@ static int rsc_parse(struct cache_detail *cd,
	return status;
}

static struct cache_detail rsc_cache_template = {
static const struct cache_detail rsc_cache_template = {
	.owner		= THIS_MODULE,
	.hash_size	= RSC_HASHMAX,
	.name		= "auth.rpcsec.context",
+2 −2
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ static int unix_gid_show(struct seq_file *m,
	return 0;
}

static struct cache_detail unix_gid_cache_template = {
static const struct cache_detail unix_gid_cache_template = {
	.owner		= THIS_MODULE,
	.hash_size	= GID_HASHMAX,
	.name		= "auth.unix.gid",
@@ -862,7 +862,7 @@ struct auth_ops svcauth_unix = {
	.set_client	= svcauth_unix_set_client,
};

static struct cache_detail ip_map_cache_template = {
static const struct cache_detail ip_map_cache_template = {
	.owner		= THIS_MODULE,
	.hash_size	= IP_HASHMAX,
	.name		= "auth.unix.ip",