From: Joe Perches Date: Sun, 4 Oct 2020 00:18:06 +0000 (-0700) Subject: KVM: PPC: Book3S HV: Make struct kernel_param_ops definition const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a4f1d94e6bc1b00c4efa9655ad14e0d49b8f1e37;p=linux.git KVM: PPC: Book3S HV: Make struct kernel_param_ops definition const This should be const, so make it so. Signed-off-by: Joe Perches Message-Id: Signed-off-by: Paolo Bonzini --- diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 490a0f6a72855..52d85c2d49703 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -111,7 +111,7 @@ module_param(one_vm_per_core, bool, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(one_vm_per_core, "Only run vCPUs from the same VM on a core (requires indep_threads_mode=N)"); #ifdef CONFIG_KVM_XICS -static struct kernel_param_ops module_param_ops = { +static const struct kernel_param_ops module_param_ops = { .set = param_set_int, .get = param_get_int, };