Skip to content

Commit 2260204

Browse files
anakryikogregkh
authored andcommitted
bpf: Fix bpf_ringbuf_output() signature to return long
[ Upstream commit e1613b5 ] Due to bpf tree fix merge, bpf_ringbuf_output() signature ended up with int as a return type, while all other helpers got converted to returning long. So fix it in bpf-next now. Fixes: b0659d8 ("bpf: Fix definition of bpf_ringbuf_output() helper in UAPI comments") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20200727224715.652037-1-andriin@fb.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8a365b8 commit 2260204

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • include/uapi/linux
  • tools/include/uapi/linux

‎include/uapi/linux/bpf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,7 @@ union bpf_attr {
31683168
* Return
31693169
* The id is returned or 0 in case the id could not be retrieved.
31703170
*
3171-
* int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
3171+
* long bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
31723172
* Description
31733173
* Copy *size* bytes from *data* into a ring buffer *ringbuf*.
31743174
* If **BPF_RB_NO_WAKEUP** is specified in *flags*, no notification

‎tools/include/uapi/linux/bpf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,7 @@ union bpf_attr {
31683168
* Return
31693169
* The id is returned or 0 in case the id could not be retrieved.
31703170
*
3171-
* int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
3171+
* long bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
31723172
* Description
31733173
* Copy *size* bytes from *data* into a ring buffer *ringbuf*.
31743174
* If **BPF_RB_NO_WAKEUP** is specified in *flags*, no notification

0 commit comments

Comments
 (0)