Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

Wei Liu
2025-01-15T20:09:23Z

On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote:
[...]
> diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
> index 7a35c82976e0..9453f0c26f2a 100644
> --- a/drivers/hv/hv_common.c
> +++ b/drivers/hv/hv_common.c
> @@ -141,7 +141,7 @@ static int sysctl_record_panic_msg = 1;
> * sysctl option to allow the user to control whether kmsg data should be
> * reported to Hyper-V on panic.
> */
> -static struct ctl_table hv_ctl_table[] = {
> +static const struct ctl_table hv_ctl_table[] = {
> {
> .procname = "hyperv_record_panic_msg",
> .data = &sysctl_record_panic_msg,

Acked-by: Wei Liu <wei.liu@kernel.org>