Fix some arm64/gcc build warnings#14
Fix some arm64/gcc build warnings#14ukleinek wants to merge 2 commits intoCHERI-Alliance:codasip-cheri-riscv-6.18from
Conversation
The function is only used with CONFIG_ARM64_MORELLO=y, but defined
unconditionally. With __maybe_unsed the following warning is fixed:
arch/arm64/mm/fault.c:805:12: warning: ‘do_cap_fault’ defined but not used [-Wunused-function]
805 | static int do_cap_fault(unsigned long far, unsigned long esr,
| ^~~~~~~~~~~~
Fixes: cdce7a4 ("[CHERRY-PICK] arm64: morello: Handle capability faults")
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
b8bb35b to
5e6ba4e
Compare
|
"funny", the two variants and both work, but adding |
|
I rebased the branch now, and chose to use a different approach to fix the unused variable warning in the drm/tda998x driver which is IMHO much more elegant. |
As you can see this introduces new build failures on morello which need to be addressed. As this is a little surprising I'll try to explain what the warning is about. This is not something you introduces but you change exposes it in the CI so this needs to be addressed. When dealing with morello you have to be aware that the morello kernel is a hybrid piece of software. I.e. it runs in compatiblity mode and e.g. As a little cheat the morello kernel defines However, this trick has a problem: The correct placement of vs. For normal pointers the compiler accepts both placements for However, for double pointers the placement is ambigous and |
5e6ba4e to
c7e957b
Compare
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
c7e957b to
913ac7c
Compare
No description provided.