]> Git Repo - linux.git/commitdiff
kvm x86/mmu: Make struct kernel_param_ops definitions const
authorJoe Perches <[email protected]>
Sun, 4 Oct 2020 00:18:07 +0000 (17:18 -0700)
committerPaolo Bonzini <[email protected]>
Wed, 21 Oct 2020 21:36:33 +0000 (17:36 -0400)
These should be const, so make it so.

Signed-off-by: Joe Perches <[email protected]>
Message-Id: <ed95eef4f10fc1317b66936c05bc7dd8f943a6d5.1601770305[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/mmu/mmu.c

index 32e0e5c0524e5b50d1a4fb5a4072da197b820e1a..08c5fb60fcce05eeab67cd3439f1500666ef84c6 100644 (file)
@@ -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,
 };
This page took 0.062817 seconds and 4 git commands to generate.