From 06e0e41e6223dbe886ee986550c0ffa06003f482 Mon Sep 17 00:00:00 2001 From: Eduard Zingerman Date: Tue, 13 Oct 2026 23:24:37 -0700 Subject: bpf: Avoid duplicate declaration for BPF_SCEV_REGS_NUM The "bpf: Use SCEV to widen bounded loops" commit introduced a second (identical and unnecessary) definition for the BPF_SCEV_REGS_NUM macro. Fixes: 088a5477a9bd ("bpf: Avoid widening registers that hinder exact stack-slot tracking") Signed-off-by: Eduard Zingerman Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20261013-scev-minimal-v3-followups-v2-2-6d9d61965486@gmail.com --- include/linux/bpf_verifier.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index 54cb6d3d0653..791398e14962 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -708,9 +708,6 @@ struct bpf_loop_exit { int to; /* instruction outside the loop */ }; -/* SCEV/widening register space: r0..r10 plus every stack slot of a frame. */ -#define BPF_SCEV_REGS_NUM (MAX_BPF_REG + MAX_BPF_STACK_SLOTS) - struct bpf_loop { struct bpf_backedge backedges[MAX_BACKEDGES]; /* edges exiting from this loop, includes edges from nested loops */ -- cgit v1.2.3