[tip: objtool/urgent] objtool: Move dodgy linker warn to verbose

tip-bot2 for Peter Zijlstra posted 1 patch 12 months ago
tools/objtool/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[tip: objtool/urgent] objtool: Move dodgy linker warn to verbose
Posted by tip-bot2 for Peter Zijlstra 12 months ago
The following commit has been merged into the objtool/urgent branch of tip:

Commit-ID:     7e501637bd5b702a2fa627e903a0025654110e1e
Gitweb:        https://git.kernel.org/tip/7e501637bd5b702a2fa627e903a0025654110e1e
Author:        Peter Zijlstra <peterz@infradead.org>
AuthorDate:    Thu, 06 Feb 2025 11:12:08 +01:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Sat, 08 Feb 2025 15:43:08 +01:00

objtool: Move dodgy linker warn to verbose

The lld.ld borkage is fixed in the latest llvm release (?) but will
not be backported, meaning we're stuck with broken linker for a fair
while.

Lets not spam all clang build logs and move warning to verbose.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 tools/objtool/check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 3520a45..497cb8d 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2273,7 +2273,7 @@ static int read_annotate(struct objtool_file *file,
 
 	if (sec->sh.sh_entsize != 8) {
 		static bool warned = false;
-		if (!warned) {
+		if (!warned && opts.verbose) {
 			WARN("%s: dodgy linker, sh_entsize != 8", sec->name);
 			warned = true;
 		}