Skip to content

Commit

Permalink
Fix build error when compiled on Tinker board
Browse files Browse the repository at this point in the history
This error caused by forbidden warning.

drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_security.c: In
function ‘aes_cipher’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_security.c:1598:5:
warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: rtw_security.c:1598

Change-Id: Iadc10a35c240f881f59933f22155ddfc381d60b3
Reviewed-on: https://tp-biosrd-v02/gerrit/82579
Reviewed-by: Sam2 Hsu(徐敏原) <Sam2_Hsu@asus.com>
Tested-by: Sam2 Hsu(徐敏原) <Sam2_Hsu@asus.com>
  • Loading branch information
Sam2Hsu committed May 8, 2018
1 parent de8ac6c commit 9be9453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/rockchip_wlan/rtl8723bs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused
EXTRA_CFLAGS += -Wno-misleading-indentation
#EXTRA_CFLAGS += -Wno-uninitialized

GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/rockchip_wlan/rtl8814au/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused
EXTRA_CFLAGS += -Wno-misleading-indentation
#EXTRA_CFLAGS += -Wno-uninitialized
EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later

Expand Down

0 comments on commit 9be9453

Please sign in to comment.