Thread (15 messages) 15 messages, 11 authors, 2025-01-29

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

From: Wei Liu <wei.liu@kernel.org>
Date: 2025-01-15 20:09:23
Also in: bpf, dri-devel, intel-gfx, intel-xe, io-uring, kexec, keyrings, linux-arm-kernel, linux-crypto, linux-fsdevel, linux-hardening, linux-hyperv, linux-mm, linux-nfs, linux-raid, linux-rdma, linux-riscv, linux-s390, linux-scsi, linux-serial, linux-trace-kernel, linux-xfs, linuxppc-dev, lkml, netfs, ocfs2-devel, xen-devel

On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote:
[...]
quoted hunk ↗ jump to hunk
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help