Joel Granados
78eb4ea25c
sysctl: treewide: constify the ctl_table argument of proc_handlers
...
const qualify the struct ctl_table argument in the proc_handler function
signatures. This is a prerequisite to moving the static ctl_table
structs into .rodata data which will ensure that proc_handler function
pointers cannot be modified.
This patch has been generated by the following coccinelle script:
```
virtual patch
@r1@
identifier ctl, write, buffer, lenp, ppos;
identifier func !~ "appldata_(timer|interval)_handler|sched_(rt|rr)_handler|rds_tcp_skbuf_handler|proc_sctp_do_(hmac_alg|rto_min|rto_max|udp_port|alpha_beta|auth|probe_interval)";
@@
int func(
- struct ctl_table *ctl
+ const struct ctl_table *ctl
,int write, void *buffer, size_t *lenp, loff_t *ppos);
@r2@
identifier func, ctl, write, buffer, lenp, ppos;
@@
int func(
- struct ctl_table *ctl
+ const struct ctl_table *ctl
,int write, void *buffer, size_t *lenp, loff_t *ppos)
{ ... }
@r3@
identifier func;
@@
int func(
- struct ctl_table *
+ const struct ctl_table *
,int , void *, size_t *, loff_t *);
@r4@
identifier func, ctl;
@@
int func(
- struct ctl_table *ctl
+ const struct ctl_table *ctl
,int , void *, size_t *, loff_t *);
@r5@
identifier func, write, buffer, lenp, ppos;
@@
int func(
- struct ctl_table *
+ const struct ctl_table *
,int write, void *buffer, size_t *lenp, loff_t *ppos);
```
* Code formatting was adjusted in xfs_sysctl.c to comply with code
conventions. The xfs_stats_clear_proc_handler,
xfs_panic_mask_proc_handler and xfs_deprecated_dointvec_minmax where
adjusted.
* The ctl_table argument in proc_watchdog_common was const qualified.
This is called from a proc_handler itself and is calling back into
another proc_handler, making it necessary to change it as part of the
proc_handler migration.
Co-developed-by: Thomas Weißschuh <linux@weissschuh.net >
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net >
Co-developed-by: Joel Granados <j.granados@samsung.com >
Signed-off-by: Joel Granados <j.granados@samsung.com >
2024-07-24 20:59:29 +02:00
..
2024-07-15 08:02:26 -07:00
2024-07-15 08:49:59 -07:00
2024-07-19 12:39:34 -07:00
2024-07-02 11:40:37 +02:00
2024-06-23 09:53:32 +03:00
2024-06-30 11:29:24 +01:00
2024-07-22 13:52:05 -07:00
2024-07-18 09:34:02 -07:00
2024-07-04 12:29:07 +02:00
2024-07-19 11:57:55 -07:00
2024-07-05 09:35:51 +01:00
2024-07-03 14:07:14 +01:00
2024-07-20 03:07:55 +02:00
2024-07-05 18:30:00 -07:00
2024-06-26 20:09:28 +01:00
2024-07-23 13:36:51 -07:00
2024-07-15 18:03:43 -07:00
2024-07-18 17:17:30 -07:00
2024-07-10 13:56:22 +02:00
2024-07-22 13:52:05 -07:00
2024-07-17 21:05:18 -07:00
2024-06-14 20:28:29 +00:00
2024-07-17 22:13:12 -07:00
2024-07-04 16:45:25 +01:00
2024-07-13 21:31:57 -07:00
2024-07-03 10:21:16 -06:00
2024-07-03 10:21:15 -06:00
2024-07-19 09:32:49 -06:00
2024-07-03 10:21:15 -06:00
2024-07-19 09:32:49 -06:00
2024-07-22 11:32:05 -07:00
2024-07-12 22:14:15 +02:00
2024-07-21 17:15:46 -07:00
2024-07-14 20:38:34 -07:00
2024-07-09 17:01:46 +02:00
2024-07-03 19:29:59 -07:00
2024-07-08 01:51:05 -06:00
2024-07-10 10:19:59 -07:00
2024-07-21 17:56:22 -07:00
2024-06-17 17:45:34 +02:00
2024-07-22 11:32:05 -07:00
2024-06-24 22:25:02 -07:00
2024-07-16 16:42:37 -07:00
2024-06-24 22:25:02 -07:00
2024-07-10 09:53:39 -04:00
2024-06-24 18:29:20 +02:00
2024-06-14 19:08:32 +02:00
2024-07-18 10:33:14 -07:00
2024-07-21 17:56:22 -07:00
2024-06-17 20:42:57 +02:00
2024-06-24 22:25:02 -07:00
2024-06-24 22:25:02 -07:00
2024-07-21 17:56:22 -07:00
2024-07-09 17:58:20 +02:00
2024-07-15 15:03:09 -07:00
2024-06-17 17:45:31 +02:00
2024-06-24 22:25:01 -07:00
2024-07-21 17:56:22 -07:00
2024-07-10 13:19:50 -07:00
2024-07-03 19:30:13 -07:00
2024-07-15 11:39:44 -07:00
2024-06-30 12:27:16 +01:00
2024-07-19 10:48:44 -07:00
2024-06-25 17:15:06 -07:00
2024-07-12 15:52:20 -07:00
2024-06-19 20:05:34 +05:30
2024-06-21 15:31:56 +05:30
2024-07-12 10:06:01 +02:00
2024-07-15 08:02:30 -07:00
2024-07-10 23:15:36 +00:00
2024-07-17 21:05:18 -07:00
2024-06-28 10:36:45 +02:00
2024-07-09 17:01:46 +02:00
2024-06-19 13:32:04 -07:00
2024-07-02 06:20:49 +02:00
2024-07-15 14:20:22 -07:00
2024-07-03 10:36:14 +02:00
2024-06-18 16:25:50 +02:00
2024-07-24 20:59:29 +02:00
2024-07-03 19:29:52 -07:00
2024-07-21 17:15:46 -07:00
2024-06-27 11:00:45 +02:00
2024-07-03 19:30:06 -07:00
2024-07-06 11:53:19 -07:00
2024-07-12 15:52:23 -07:00
2024-07-17 21:08:54 -07:00
2024-06-16 13:41:53 +08:00
2024-07-20 15:45:27 +02:00
2024-07-12 16:39:52 -07:00
2024-07-08 16:22:49 -07:00
2024-06-21 14:52:12 +02:00
2024-07-08 11:40:57 -05:00
2024-07-22 13:52:05 -07:00
2024-07-15 13:49:10 -07:00
2024-07-03 15:45:47 +01:00
2024-07-19 09:59:58 -07:00
2024-07-04 09:25:59 +02:00
2024-06-17 20:46:39 +02:00
2024-07-15 15:13:56 +02:00
2024-07-21 17:15:46 -07:00
2024-06-24 22:24:56 -07:00
2024-06-17 12:30:07 -07:00
2024-06-24 22:25:02 -07:00
2024-07-03 19:30:22 -07:00
2024-07-03 19:30:23 -07:00
2024-07-16 09:51:36 -04:00
2024-07-04 17:07:01 +01:00
2024-07-04 11:52:32 +02:00
2024-07-10 12:14:54 -07:00
2024-06-24 16:41:22 -07:00
2024-06-24 16:41:22 -07:00
2024-07-14 19:00:16 -04:00
2024-07-18 17:27:43 -07:00
2024-07-16 14:50:44 -07:00
2024-07-01 19:28:58 +01:00
2024-07-21 17:15:46 -07:00
2024-07-10 12:14:54 -07:00
2024-07-12 15:52:09 -07:00
2024-07-03 19:30:18 -07:00
2024-07-12 15:52:20 -07:00
2024-07-03 19:06:14 +05:30
2024-07-03 19:30:12 -07:00
2024-07-06 11:53:20 -07:00
2024-07-15 08:02:26 -07:00
2024-06-24 22:24:59 -07:00
2024-07-12 06:45:23 -10:00
2024-07-21 17:15:46 -07:00
2024-07-24 20:59:29 +02:00
2024-07-06 11:44:41 -07:00
2024-07-23 11:43:40 -07:00
2024-07-22 14:02:19 -07:00
2024-07-15 08:02:26 -07:00
2024-06-24 16:41:23 -07:00
2024-07-11 18:11:31 -07:00
2024-07-08 13:47:25 -04:00
2024-07-08 13:47:27 -04:00
2024-07-08 13:47:51 -04:00
2024-07-08 13:47:26 -04:00
2024-06-24 22:25:02 -07:00
2024-06-28 10:37:29 +02:00
2024-06-16 10:17:57 +03:00
2024-07-21 17:56:22 -07:00
2024-07-15 14:20:22 -07:00
2024-07-08 17:40:30 -06:00
2024-07-12 15:52:20 -07:00
2024-07-03 22:40:38 -07:00
2024-07-03 19:30:20 -07:00
2024-07-23 15:15:16 -07:00
2024-06-24 22:25:05 -07:00
2024-07-03 16:44:22 +02:00
2024-06-28 09:52:05 +02:00
2024-07-19 12:39:34 -07:00
2024-07-04 14:40:53 +00:00
2024-07-04 14:40:53 +00:00
2024-07-19 19:03:18 -07:00
2024-06-17 15:15:46 +02:00
2024-06-17 15:15:46 +02:00
2024-07-03 19:30:02 -07:00
2024-06-24 22:25:02 -07:00
2024-07-24 20:59:29 +02:00
2024-07-17 21:05:19 -07:00
2024-07-12 15:52:15 -07:00
2024-07-15 08:02:26 -07:00
2024-06-18 13:28:26 +02:00
2024-07-21 17:56:22 -07:00
2024-06-26 11:17:20 +05:30
2024-07-21 17:56:22 -07:00
2024-06-26 17:32:00 +02:00
2024-07-04 15:41:44 +02:00
2024-06-24 22:25:02 -07:00
2024-07-10 17:52:47 +02:00
2024-07-13 21:36:36 -07:00
2024-07-21 17:56:22 -07:00
2024-07-10 23:05:45 +01:00
2024-07-02 19:49:54 +02:00
2024-07-03 19:30:18 -07:00
2024-07-19 09:39:32 -06:00
2024-07-10 07:59:03 +02:00
2024-07-21 17:56:22 -07:00
2024-06-18 14:04:03 +02:00
2024-07-24 20:59:29 +02:00
2024-06-24 22:25:02 -07:00
2024-06-24 16:14:48 +02:00
2024-06-24 16:09:37 +02:00
2024-06-28 10:48:23 +01:00
2024-07-12 15:52:21 -07:00
2024-07-02 18:59:33 -07:00
2024-07-21 17:15:46 -07:00
2024-07-12 15:52:20 -07:00
2024-07-21 17:15:46 -07:00
2024-07-16 19:28:34 -07:00
2024-07-20 12:41:03 -07:00
2024-06-20 15:19:17 -06:00
2024-07-05 09:35:51 +01:00
2024-06-24 22:25:02 -07:00
2024-07-06 11:44:41 -07:00
2024-07-12 15:52:15 -07:00
2024-07-10 07:59:03 +02:00
2024-07-18 12:19:20 -07:00
2024-07-24 20:59:29 +02:00
2024-07-04 02:02:33 -06:00
2024-07-09 13:26:34 +02:00
2024-07-12 15:14:56 +02:00
2024-06-21 18:10:15 +02:00
2024-06-24 22:25:02 -07:00
2024-07-05 02:12:27 +03:00
2024-06-24 22:25:02 -07:00
2024-06-17 20:42:57 +02:00
2024-07-01 15:46:36 +02:00
2024-07-10 13:58:24 +02:00
2024-07-19 20:22:12 +02:00
2024-06-21 12:47:01 -06:00
2024-07-17 05:20:58 -04:00
2024-07-04 11:00:31 -04:00
2024-07-24 20:59:29 +02:00
2024-06-24 20:36:08 +03:00
2024-06-24 18:16:44 +01:00
2024-07-21 17:56:22 -07:00
2024-07-24 20:59:29 +02:00
2024-07-10 12:14:55 -07:00