svpcom / rtl8812au

Patched rtl88xxau drivers for wfb-ng
https://github.com/svpcom/wfb-ng
GNU General Public License v2.0
103 stars 64 forks source link

Build error in kernel 4.19 when cross compile #37

Open KevinChau9527 opened 4 months ago

KevinChau9527 commented 4 months ago

Compiler: arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0 Target Kerne Versionl: Linux/arm 4.19.111

=============ERROR INFO============== drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c: In function '_iqk_tx_8812a': drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:859:52: warning: array subscript is above array bounds [-Warray-bounds] error, forbidden warning:halrf_8812a_ce.c:859 dx = (TX_IQC_temp[i][0] >> 21) - (TX_IQC_temp[ii][0] >> 21);


drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:861:53: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:861
        dy = (TX_IQC_temp[i][1] >> 21) - (TX_IQC_temp[ii][1] >> 21);
                                          ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:875:52: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:875
       dx = (TX_IQC_temp[i][2] >> 21) - (TX_IQC_temp[ii][2] >> 21);
                                         ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:877:53: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:877
        dy = (TX_IQC_temp[i][3] >> 21) - (TX_IQC_temp[ii][3] >> 21);
                                          ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:1082:52: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:1082
       dx = (RX_IQC_temp[i][0] >> 21) - (RX_IQC_temp[ii][0] >> 21);
                                         ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:1084:53: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:1084
        dy = (RX_IQC_temp[i][1] >> 21) - (RX_IQC_temp[ii][1] >> 21);
                                          ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:1098:52: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:1098
       dx = (RX_IQC_temp[i][2] >> 21) - (RX_IQC_temp[ii][2] >> 21);
                                         ~~~~~~~~~~~^~~~
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c:1100:53: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning:halrf_8812a_ce.c:1100
        dy = (RX_IQC_temp[i][3] >> 21) - (RX_IQC_temp[ii][3] >> 21);
                                          ~~~~~~~~~~~^~~~
  CC [M]  drivers/net/wireless/realtek/rtl8812au/hal/phydm/txbf/haltxbfjaguar.o
drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.c: At top level:
cc1: warning: unrecognized command line option '-Wno-cast-function-type'
cc1: warning: unrecognized command line option '-Wno-stringop-overread'
cc1: warning: unrecognized command line option '-Wno-cast-function-type'
cc1: warning: unrecognized command line option '-Wno-implicit-fallthrough'
make[6]: *** [scripts/Makefile.build:333: drivers/net/wireless/realtek/rtl8812au/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.o] Error 1
===================ERROR INFO========================