History

bpf: Fix typo in uapi doc comments

In a few places in the bpf uapi headers, EOPNOTSUPP is missing a "P" in the doc comments. This adds the missing "P".

David Lechner committed 2 years ago

Commit ca4ddc21 parent a70f5d82 files · +4 −4Browse files

Showing the changes to tools/include/uapi (1 of 2 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+2−2
@@ -5026,7 +5026,7 @@ union bpf_attr { · 5025 unmodified lines
5026 * bytes will be copied to *dst*5026 * bytes will be copied to *dst*
5027 * Return5027 * Return
5028 * The **hash_algo** is returned on success,5028 * The **hash_algo** is returned on success,
5029 * **-EOPNOTSUP** if IMA is disabled or **-EINVAL** if5029 * **-EOPNOTSUPP** if IMA is disabled or **-EINVAL** if
5030 * invalid arguments are passed.5030 * invalid arguments are passed.
5031 *5031 *
5032 * struct socket *bpf_sock_from_file(struct file *file)5032 * struct socket *bpf_sock_from_file(struct file *file)
@@ -5512,7 +5512,7 @@ union bpf_attr { · 479 unmodified lines
5512 * bytes will be copied to *dst*5512 * bytes will be copied to *dst*
5513 * Return5513 * Return
5514 * The **hash_algo** is returned on success,5514 * The **hash_algo** is returned on success,
5515 * **-EOPNOTSUP** if the hash calculation failed or **-EINVAL** if5515 * **-EOPNOTSUPP** if the hash calculation failed or **-EINVAL** if
5516 * invalid arguments are passed.5516 * invalid arguments are passed.
5517 *5517 *
5518 * void *bpf_kptr_xchg(void *map_value, void *ptr)5518 * void *bpf_kptr_xchg(void *map_value, void *ptr)