Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@xxxxxxxxxx>: On Wed, 8 May 2024 12:13:13 +0200 you wrote: > [Changes from V1: > - Use a default branch in the switch statement to initialize `val'.] > > GCC warns that `val' may be used uninitialized in the > BPF_CRE_READ_BITFIELD macro, defined in bpf_core_read.h as: > > [...] > unsigned long long val; \ > [...] \ > switch (__CORE_RELO(s, field, BYTE_SIZE)) { \ > case 1: val = *(const unsigned char *)p; break; \ > case 2: val = *(const unsigned short *)p; break; \ > case 4: val = *(const unsigned int *)p; break; \ > case 8: val = *(const unsigned long long *)p; break; \ > } \ > [...] > val; \ > } \ > > [...] Here is the summary with links: - [bpf-next,V2] bpf: avoid uninitialized value in BPF_CORE_READ_BITFIELD https://git.kernel.org/bpf/bpf-next/c/009367099eb6 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html