30b4e4be4f9ad91ad31705ad4a4e0054741237b4
[openwrt/staging/jow.git] / package / kernel / qca-ssdk / patches / 0008-QSDK-config-Avoid-Werror-heroics.patch
1 From d70d013ac1090565ebb71875f5bdc70840807428 Mon Sep 17 00:00:00 2001
2 From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
3 Date: Fri, 23 Sep 2022 08:21:13 -0500
4 Subject: [PATCH 08/14] QSDK: config: Avoid -Werror heroics
5
6 Trying to compile the QSDK with warnings as errors is a very brave
7 endeavor. It's also stupid as it doesn't work on ipq60xx:
8
9 isisc_acl_prv.h:99: error: "FIELD_GET" redefined [-Werror]
10 99 | #define FIELD_GET(reg, field, val) \
11 |
12
13 Instead of dealing with the braindead code, just disable Werror.
14
15 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
16 ---
17 config | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/config
21 +++ b/config
22 @@ -133,7 +133,7 @@ endif
23
24 ifeq ($(ARCH), arm64)
25 ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4%,$(KVER)))
26 - CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -Werror -fno-common -Wno-format-security -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-error=unused-result -mcmodel=large
27 + CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -fno-common -Wno-format-security -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-error=unused-result -mcmodel=large
28 endif
29 endif
30