[PATCH] arm: Silence gcc warnings about arch ABI drift

From: Calvin Owens
Date: Sun Feb 18 2024 - 23:10:03 EST


32-bit arm builds uniquely emit a lot of spam like this:

fs/bcachefs/backpointers.c: In function ‘extent_matches_bp’:
fs/bcachefs/backpointers.c:15:13: note: parameter passing for argument of type ‘struct bch_backpointer’ changed in GCC 9.1

Apply the arm64 change from commit ebcc5928c5d9 ("arm64: Silence gcc
warnings about arch ABI drift") to silence them. It seems like Dave's
original rationale applies here too.

Cc: Dave Martin <Dave.Martin@xxxxxxx>
Signed-off-by: Calvin Owens <jcalvinowens@xxxxxxxxx>
---
arch/arm/Makefile | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 473280d5adce..184a5a2c7756 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -28,6 +28,9 @@ KBUILD_CFLAGS += $(call cc-option,-mno-fdpic)
# This should work on most of the modern platforms
KBUILD_DEFCONFIG := multi_v7_defconfig

+# Silence "note: xyz changed in GCC X.X" messages
+KBUILD_CFLAGS += $(call cc-disable-warning, psabi)
+
# defines filename extension depending memory management type.
ifeq ($(CONFIG_MMU),)
MMUEXT := -nommu
--
2.43.0