Commit d5d6c18d authored by Joe Perches's avatar Joe Perches Committed by Paolo Bonzini

kvm x86/mmu: Make struct kernel_param_ops definitions const

These should be const, so make it so.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Message-Id: <ed95eef4f10fc1317b66936c05bc7dd8f943a6d5.1601770305.git.joe@perches.com>
Reviewed-by: default avatarBen Gardon <bgardon@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3f4e3eb4
...@@ -64,12 +64,12 @@ static uint __read_mostly nx_huge_pages_recovery_ratio = 60; ...@@ -64,12 +64,12 @@ static uint __read_mostly nx_huge_pages_recovery_ratio = 60;
static int set_nx_huge_pages(const char *val, const struct kernel_param *kp); static int set_nx_huge_pages(const char *val, const struct kernel_param *kp);
static int set_nx_huge_pages_recovery_ratio(const char *val, const struct kernel_param *kp); static int set_nx_huge_pages_recovery_ratio(const char *val, const struct kernel_param *kp);
static struct kernel_param_ops nx_huge_pages_ops = { static const struct kernel_param_ops nx_huge_pages_ops = {
.set = set_nx_huge_pages, .set = set_nx_huge_pages,
.get = param_get_bool, .get = param_get_bool,
}; };
static struct kernel_param_ops nx_huge_pages_recovery_ratio_ops = { static const struct kernel_param_ops nx_huge_pages_recovery_ratio_ops = {
.set = set_nx_huge_pages_recovery_ratio, .set = set_nx_huge_pages_recovery_ratio,
.get = param_get_uint, .get = param_get_uint,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment