On Tue, 30 Apr 2024 at 22:24, Andrii Nakryiko <andrii@xxxxxxxxxx> wrote: > > ringbuf_process_ring() return int64_t, while ring__consume_n() assigns > it to int. It's highly unlikely, but possible for ringbuf_process_ring() > to return value larger than INT_MAX, so use int64_t. ring__consume_n() > does check INT_MAX before returning int result to the user. > > Fixes: 4d22ea94ea33 ("libbpf: Add ring__consume_n / ring_buffer__consume_n") > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>