Separate -Werror=frame-larger-than as clang can't recognize

Use '-Werror' and '-Wframe-larger-than' to replace
'-Werror=frame-larger-than' since clang compiler can't
ecognize the combination.

Build failure:

error: unknown warning option '-Werror=frame-larger-than=2560'; did you
mean '-Werror=frame-larger-than='? [-Werror,-Wunknown-warning-option]

Bug 4187941

Change-Id: I4d05a8dc96820517e1047b982a24ed97bb21327f
Signed-off-by: Jian-Min Liu <jianminl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2938229
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Jian-Min Liu
2023-07-18 03:10:07 +00:00
committed by mobile promotions
parent 9f2ed528c8
commit fc93f2390c

View File

@@ -8,6 +8,6 @@ endif
obj-m += tegra-se-nvrng.o obj-m += tegra-se-nvrng.o
ifdef CONFIG_TEGRA_HOST1X ifdef CONFIG_TEGRA_HOST1X
ccflags-y += -Werror=frame-larger-than=2560 ccflags-y += -Wframe-larger-than=2560
obj-m += tegra-nvvse-cryptodev.o obj-m += tegra-nvvse-cryptodev.o
endif endif