tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 93e3864c8d0c394f924882214846e755b95a8e83
commit: 9c1b00e0f56243a5862c1931ecc5587642061c04 [37/40] CHROMIUM: rtw89: add Realtek
802.11ax driver
config: i386-randconfig-a015-20210822 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 9c1b00e0f56243a5862c1931ecc5587642061c04
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/wireless/realtek/rtw89/debug.c: In function 'is_dbg_port_valid':
> drivers/net/wireless/realtek/rtw89/debug.c:1918:10: error:
comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
1918 | sel >= RTW89_DBG_PORT_SEL_PTCL_C0 &&
| ^~
cc1: all warnings being treated as errors
vim +1918 drivers/net/wireless/realtek/rtw89/debug.c
1902
1903 static bool is_dbg_port_valid(struct rtw89_dev *rtwdev, u32 sel)
1904 {
1905 if (rtwdev->hci.type != RTW89_HCI_TYPE_PCIE &&
1906 sel >= RTW89_DBG_PORT_SEL_PCIE_TXDMA &&
1907 sel <= RTW89_DBG_PORT_SEL_PCIE_MISC2)
1908 return false;
1909 if (rtwdev->chip->chip_id == RTL8852B &&
1910 sel >= RTW89_DBG_PORT_SEL_PTCL_C1 &&
1911 sel <= RTW89_DBG_PORT_SEL_TXTF_INFOH_C1)
1912 return false;
1913 if (rtw89_mac_check_mac_en(rtwdev, 0, RTW89_DMAC_SEL) &&
1914 sel >= RTW89_DBG_PORT_SEL_WDE_BUFMGN_FREEPG &&
1915 sel <= RTW89_DBG_PORT_SEL_PKTINFO)
1916 return false;
1917 if (rtw89_mac_check_mac_en(rtwdev, 0, RTW89_CMAC_SEL) &&
1918 sel >= RTW89_DBG_PORT_SEL_PTCL_C0 &&
1919 sel <= RTW89_DBG_PORT_SEL_TXTF_INFOH_C0)
1920 return false;
1921 if (rtw89_mac_check_mac_en(rtwdev, 1, RTW89_CMAC_SEL) &&
1922 sel >= RTW89_DBG_PORT_SEL_PTCL_C1 &&
1923 sel <= RTW89_DBG_PORT_SEL_TXTF_INFOH_C1)
1924 return false;
1925
1926 return true;
1927 }
1928
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org