Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf...d_path(): constify path argument

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 1b8abbb1 63dbfb07

+3 -3
+1 -1
fs/bpf_fs_kfuncs.c
··· 79 79 * pathname in *buf*, including the NUL termination character. On error, a 80 80 * negative integer is returned. 81 81 */ 82 - __bpf_kfunc int bpf_path_d_path(struct path *path, char *buf, size_t buf__sz) 82 + __bpf_kfunc int bpf_path_d_path(const struct path *path, char *buf, size_t buf__sz) 83 83 { 84 84 int len; 85 85 char *ret;
+1 -1
kernel/trace/bpf_trace.c
··· 900 900 .arg1_type = ARG_ANYTHING, 901 901 }; 902 902 903 - BPF_CALL_3(bpf_d_path, struct path *, path, char *, buf, u32, sz) 903 + BPF_CALL_3(bpf_d_path, const struct path *, path, char *, buf, u32, sz) 904 904 { 905 905 struct path copy; 906 906 long len;
+1 -1
tools/testing/selftests/bpf/bpf_experimental.h
··· 219 219 * including the NULL termination character, stored in the supplied 220 220 * buffer. On error, a negative integer is returned. 221 221 */ 222 - extern int bpf_path_d_path(struct path *path, char *buf, size_t buf__sz) __ksym; 222 + extern int bpf_path_d_path(const struct path *path, char *buf, size_t buf__sz) __ksym; 223 223 224 224 /* This macro must be used to mark the exception callback corresponding to the 225 225 * main program. For example: