summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2026-10-13 23:24:37 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2026-10-15 00:23:19 +0200
commit06e0e41e6223dbe886ee986550c0ffa06003f482 (patch)
tree30cc2b89af2c666972dbdfedbf81083e3bfadaf0 /include
parente980770b431a7d459da4eca37c0300ca07058e54 (diff)
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 <eddyz87@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20261013-scev-minimal-v3-followups-v2-2-6d9d61965486@gmail.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/bpf_verifier.h3
1 files changed, 0 insertions, 3 deletions
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 */