summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu/mmu.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-10-04 02:18:07 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-10-21 23:36:33 +0200
commitd5d6c18dc454f0ee410d035429dd9e1412c01f8a (patch)
tree8cbe6e9e8b379b354baa1b9e94605823d973b18d /arch/x86/kvm/mmu/mmu.c
parentKVM: x86: bump KVM_MAX_CPUID_ENTRIES (diff)
downloadlinux-d5d6c18dc454f0ee410d035429dd9e1412c01f8a.tar.xz
linux-d5d6c18dc454f0ee410d035429dd9e1412c01f8a.zip
kvm x86/mmu: Make struct kernel_param_ops definitions const
These should be const, so make it so. Signed-off-by: Joe Perches <joe@perches.com> Message-Id: <ed95eef4f10fc1317b66936c05bc7dd8f943a6d5.1601770305.git.joe@perches.com> Reviewed-by: Ben Gardon <bgardon@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/mmu/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 32e0e5c0524e..08c5fb60fcce 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -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_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,
.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,
.get = param_get_uint,
};