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

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

From: Baoquan He <bhe@redhat.com>
Date: 2025-01-12 10:36:48
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-security-module, linux-serial, linux-trace-kernel, linux-xfs, lkml, netfs, ocfs2-devel, xen-devel

On 01/10/25 at 03:16pm, Joel Granados wrote:
...snip...
quoted hunk ↗ jump to hunk
diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c
index c0caa14880c3..71b0809e06d6 100644
--- a/kernel/kexec_core.c
+++ b/kernel/kexec_core.c
@@ -925,7 +925,7 @@ static int kexec_limit_handler(const struct ctl_table *table, int write,
 	return proc_dointvec(&tmp, write, buffer, lenp, ppos);
 }
 
-static struct ctl_table kexec_core_sysctls[] = {
+static const struct ctl_table kexec_core_sysctls[] = {
 	{
 		.procname	= "kexec_load_disabled",
 		.data		= &kexec_load_disabled,
For the kexec/kdump part,

Acked-by: Baoquan He <bhe@redhat.com>
......

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help