Tobias Klauser
7787b6fc93
bpf, sysctl: Let bpf_stats_handler take a kernel pointer buffer
Commit 32927393dc ("sysctl: pass kernel pointers to ->proc_handler")
changed ctl_table.proc_handler to take a kernel pointer. Adjust the
signature of bpf_stats_handler to match ctl_table.proc_handler which
fixes the following sparse warning:
kernel/sysctl.c:226:49: warning: incorrect type in argument 3 (different address spaces)
kernel/sysctl.c:226:49: expected void *
kernel/sysctl.c:226:49: got void [noderef] __user *buffer
kernel/sysctl.c:2640:35: warning: incorrect type in initializer (incompatible argument 3 (different address spaces))
kernel/sysctl.c:2640:35: expected int ( [usertype] *proc_handler )( ... )
kernel/sysctl.c:2640:35: got int ( * )( ... )
Fixes: 32927393dc ("sysctl: pass kernel pointers to ->proc_handler")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/bpf/20200824142047.22043-1-tklauser@distanz.ch
2020-08-24 21:11:40 -07:00
..
2020-08-24 21:03:07 -07:00
2020-08-03 11:57:03 -07:00
2020-08-04 13:49:43 -07:00
2020-08-20 10:48:17 -07:00
2020-08-21 16:17:29 +02:00
2020-08-21 09:52:53 -07:00
2020-06-14 01:57:21 +09:00
2020-08-13 09:35:59 +02:00
2020-08-01 09:26:27 +02:00
2020-08-10 19:07:44 -07:00
2020-08-11 10:59:19 -07:00
2020-08-04 22:22:25 -07:00
2020-08-07 11:33:28 -07:00
2020-08-15 10:36:40 -07:00
2020-08-14 14:26:08 -07:00
2020-08-13 20:03:11 -07:00
2020-06-09 09:39:14 -07:00
2020-07-16 12:35:15 -07:00
2020-07-27 23:25:50 +02:00
2020-08-06 19:29:51 -07:00
2020-07-27 23:25:50 +02:00
2020-08-04 14:20:26 -07:00
2020-07-29 10:00:36 -04:00
2020-08-04 14:20:26 -07:00
2020-07-30 11:15:58 -07:00
2020-06-11 15:14:36 +02:00
2020-06-03 13:06:42 -07:00
2020-08-12 10:58:01 -07:00
2020-08-12 10:57:59 -07:00
2020-08-10 19:07:44 -07:00
2020-08-13 21:02:12 +02:00
2020-06-06 23:42:01 +09:00
2020-06-02 10:59:11 -07:00
2020-06-08 11:05:56 -07:00
2020-07-28 13:18:01 +02:00
2020-08-12 10:58:02 -07:00
2020-08-15 10:38:03 -07:00
2020-08-12 10:58:01 -07:00
2020-08-07 18:29:15 -07:00
2020-08-12 10:57:59 -07:00
2020-08-14 19:56:56 -07:00
2020-08-14 11:07:02 -07:00
2020-06-02 10:59:12 -07:00
2020-07-08 11:14:22 +02:00
2020-07-23 17:34:18 +10:00
2020-08-12 10:58:02 -07:00
2020-07-19 20:14:42 +02:00
2020-08-04 15:02:07 -07:00
2020-07-01 12:09:13 +03:00
2020-07-27 14:31:12 -04:00
2020-08-21 09:52:53 -07:00
2020-08-07 11:33:25 -07:00
2020-07-14 16:29:42 -07:00
2020-08-13 09:01:38 -06:00
2020-07-22 10:22:04 +02:00
2020-08-04 13:40:35 -07:00
2020-06-24 07:48:28 -07:00
2020-08-12 10:57:59 -07:00
2020-08-14 19:56:56 -07:00
2020-07-19 20:14:42 +02:00
2020-08-24 21:11:40 -07:00
2020-08-13 09:01:38 -06:00
2020-06-29 12:01:45 -07:00
2020-08-12 10:57:59 -07:00
2020-06-04 19:06:24 -07:00
2020-07-07 11:58:59 -05:00
2020-08-17 09:39:18 -07:00
2020-06-08 11:05:56 -07:00
2020-06-17 10:57:41 -07:00