From 9a982434503accb2ed1ee1d4cf27b7cd30c01fd6 Mon Sep 17 00:00:00 2001 From: Hendrik Brueckner Date: Mon, 6 Feb 2023 18:16:11 +0100 Subject: [PATCH] update(bpf): initialize variable to make clang-15 happy Co-authored-by: Andrea Terzolo Signed-off-by: Hendrik Brueckner --- driver/bpf/filler_helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/bpf/filler_helpers.h b/driver/bpf/filler_helpers.h index d3bbbc78e3..c65f4e699b 100644 --- a/driver/bpf/filler_helpers.h +++ b/driver/bpf/filler_helpers.h @@ -923,7 +923,7 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data, * we send an empty param `len=0`. */ volatile u16 read_size = dpi_lookahead_size; - int rc; + int rc = 0; rc = __bpf_read_val_into(data, curoff_bounded, val, read_size, mem); if (rc) @@ -949,7 +949,7 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data, if(!data->curarg_already_on_frame) { volatile u16 read_size = len; - int rc; + int rc = 0; curoff_bounded = data->state->tail_ctx.curoff & SCRATCH_SIZE_HALF; if (data->state->tail_ctx.curoff > SCRATCH_SIZE_HALF)