From 3a5b595eca6014cbb5d75dec7d2be618c3bb43a0 Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Tue, 16 Jul 2024 15:20:05 +0800 Subject: [PATCH] thirdparty/bnxt: set -Wframe-larger-than=2144 in Makefile To fix compile error when building debug kernel: bnxt/tfc_v3/tfc_tbl_scope.c: In function 'tfc_tbl_scope_mem_alloc': bnxt/tfc_v3/tfc_tbl_scope.c:1185:1: error: the frame size of 2144 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] Signed-off-by: Jianping Liu Reviewed-by: Yongliang Gao --- drivers/thirdparty/bnxt/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thirdparty/bnxt/Makefile b/drivers/thirdparty/bnxt/Makefile index 5c3a6e2f85db..bd1e847a35af 100644 --- a/drivers/thirdparty/bnxt/Makefile +++ b/drivers/thirdparty/bnxt/Makefile @@ -1417,6 +1417,7 @@ define bnxt_ver endef cflags-y += $(EXTRA_CFLAGS) +KBUILD_CFLAGS += -Wframe-larger-than=2144 src=$(BNXT_SRC) ccflags-y := -I$(src)/ ccflags-y += -I$(src)/tf_core/