I have downloaded the Nvidia kernel sources and unpacked to the directory /usr/src/Linux_for_Tegra/source/public/kernel/kernel-4.9
. I called make modules
and after some time I get the error message -Werror=tautological-compare
:
CC [M] drivers/net/wireless/realtek/rtl8812au/hal/rtl8812a/usb/rtl8812au_xmit.o
/usr/src/Linux_for_Tegra/source/public/kernel/nvidia/drivers/net/wireless/realtek/rtl8812au/hal/rtl8812a/usb/rtl8812au_xmit.c: In function ‘upload_txpktbuf_8812au’:
/usr/src/Linux_for_Tegra/source/public/kernel/nvidia/drivers/net/wireless/realtek/rtl8812au/hal/rtl8812a/usb/rtl8812au_xmit.c:433:61: error: bitwise comparison always evaluates to false [-Werror=tautological-compare]
433 | while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == 1) {
| ^~
cc1: all warnings being treated as errors
How can I solve / avoid this?