]> www.infradead.org Git - users/jedix/linux-maple.git/commit
objtool: Increase per-function WARN_FUNC() rate limit
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 14 Mar 2025 19:29:03 +0000 (12:29 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Mar 2025 10:36:00 +0000 (11:36 +0100)
commit0a7fb6f07e3ad497d31ae9a2082d2cacab43d54a
tree1b9e6d17f8671fe1e53baa1baa256b35c9d7a284
parentdd95beba97b61ed53e6c96b5a43fbc9edf07c033
objtool: Increase per-function WARN_FUNC() rate limit

Increase the per-function WARN_FUNC() rate limit from 1 to 2.  If the
number of warnings for a given function goes beyond 2, print "skipping
duplicate warning(s)".  This helps root out additional warnings in a
function that might be hiding behind the first one.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/aec318d66c037a51c9f376d6fb0e8ff32812a037.1741975349.git.jpoimboe@kernel.org
tools/objtool/check.c
tools/objtool/include/objtool/elf.h
tools/objtool/include/objtool/warn.h