[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250826064631.9617-1-yangtiezhu@loongson.cn>
Date: Tue, 26 Aug 2025 14:46:29 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>,
Josh Poimboeuf <jpoimboe@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Nathan Chancellor <nathan@...nel.org>
Cc: loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 0/2] Fix objtool warnings if LTO is enabled for LoongArch (Part 2)
The previous series is to fix most of the warnings (total 3030):
sibling call from callable instruction with modified stack frame
This series is a follow up to fix 2 kinds of warnings (total 24), it only
touches the LoongArch related code:
falls through to next function
unreachable instruction
With this series, there is only 1 kind of warning (total 3), it does not
only touch the LoongArch related code:
missing __noreturn in .c/.h or NORETURN() in noreturns.h
In order to silence the above warnings, it needs to change the related
code to give the functions __noreturn attribute, and have a NORETURN()
annotation in tools/objtool/noreturns.h. IMO, it will touch all of the
archs and the generic code, so this needs much more work to avoid the
side effect or regression, once it is done I will send out the patch.
Tiezhu Yang (2):
objtool/LoongArch: Fix fall through warning about efi_boot_kernel()
objtool/LoongArch: Fix unreachable instruction warnings about head.S
arch/loongarch/kernel/head.S | 8 ++++----
drivers/firmware/efi/libstub/loongarch.c | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
--
2.42.0
Powered by blists - more mailing lists