diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-25 12:58:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-25 12:58:36 -0700 |
| commit | b485625078cab3b824a84ce185b6e73733704b5b (patch) | |
| tree | ad3d7d8e6fe21b494d82d8d1d84a91c5e1794c37 /drivers/macintosh | |
| parent | bba959f477f2f4a48ab72eda2902db706bbc3793 (diff) | |
| parent | 78eb4ea25cd5fdbdae7eb9fdf87b99195ff67508 (diff) | |
| download | linux-b485625078cab3b824a84ce185b6e73733704b5b.tar.gz linux-b485625078cab3b824a84ce185b6e73733704b5b.tar.bz2 linux-b485625078cab3b824a84ce185b6e73733704b5b.zip | |
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 'drivers/macintosh')
| -rw-r--r-- | drivers/macintosh/mac_hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c index b7b3ef1e58dc..b461b1bed25b 100644 --- a/drivers/macintosh/mac_hid.c +++ b/drivers/macintosh/mac_hid.c @@ -183,7 +183,7 @@ static void mac_hid_stop_emulation(void) mac_hid_destroy_emumouse(); } -static int mac_hid_toggle_emumouse(struct ctl_table *table, int write, +static int mac_hid_toggle_emumouse(const struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int *valp = table->data; |
