diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-25 22:58:36 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-25 22:58:36 +0300 |
commit | b485625078cab3b824a84ce185b6e73733704b5b (patch) | |
tree | ad3d7d8e6fe21b494d82d8d1d84a91c5e1794c37 /arch/x86 | |
parent | bba959f477f2f4a48ab72eda2902db706bbc3793 (diff) | |
parent | 78eb4ea25cd5fdbdae7eb9fdf87b99195ff67508 (diff) | |
download | linux-b485625078cab3b824a84ce185b6e73733704b5b.tar.xz |
Merge tag 'constfy-sysctl-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl
Pull sysctl constification from Joel Granados:
"Treewide constification of the ctl_table argument of proc_handlers
using a coccinelle script and some manual code formatting fixups.
This is a prerequisite to moving the static ctl_table structs into
read-only data section which will ensure that proc_handler function
pointers cannot be modified"
* tag 'constfy-sysctl-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: treewide: constify the ctl_table argument of proc_handlers
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/itmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/itmt.c b/arch/x86/kernel/itmt.c index 9a7c03d47861..51b805c727fc 100644 --- a/arch/x86/kernel/itmt.c +++ b/arch/x86/kernel/itmt.c @@ -38,7 +38,7 @@ static bool __read_mostly sched_itmt_capable; */ unsigned int __read_mostly sysctl_sched_itmt_enabled; -static int sched_itmt_update_handler(struct ctl_table *table, int write, +static int sched_itmt_update_handler(const struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { unsigned int old_sysctl; |