Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on wireless-drivers-next/master] [also build test WARNING on wireless-drivers/master v5.8-rc3 next-20200629] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/pkshih-realtek-com/rtlwifi-Use-const-in-8188ee-8723be-8821ae-swing_table-declarations/20200629-113150 base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project a28d38a6bca1726d56c9b373f4c7dc5264fc7716) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:194:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_24gb_n' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_24gb_n[] = { ^ >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:198:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_24gb_p' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_24gb_p[] = { ^ >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:210:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_24gcckb_n' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_24gcckb_n[] = { ^ >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:214:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_24gcckb_p' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_24gcckb_p[] = { ^ >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:226:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_5gb_n' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_5gb_n[][DEL_SW_IDX_SZ] = { ^ >> drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:235:17: warning: unused variable 'rtl8821ae_delta_swing_table_idx_5gb_p' [-Wunused-const-variable] static const u8 rtl8821ae_delta_swing_table_idx_5gb_p[][DEL_SW_IDX_SZ] = { ^ 6 warnings generated. vim +/rtl8821ae_delta_swing_table_idx_24gb_n +194 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 193 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @194 static const u8 rtl8821ae_delta_swing_table_idx_24gb_n[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 195 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 196 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 197 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @198 static const u8 rtl8821ae_delta_swing_table_idx_24gb_p[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 199 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 200 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 201 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 202 static const u8 rtl8821ae_delta_swing_table_idx_24ga_n[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 203 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 204 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 205 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 206 static const u8 rtl8821ae_delta_swing_table_idx_24ga_p[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 207 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 208 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 209 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @210 static const u8 rtl8821ae_delta_swing_table_idx_24gcckb_n[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 211 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 212 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 213 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @214 static const u8 rtl8821ae_delta_swing_table_idx_24gcckb_p[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 215 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 216 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 217 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 218 static const u8 rtl8821ae_delta_swing_table_idx_24gccka_n[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 219 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 220 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 221 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 222 static const u8 rtl8821ae_delta_swing_table_idx_24gccka_p[] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 223 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 224 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12}; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 225 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @226 static const u8 rtl8821ae_delta_swing_table_idx_5gb_n[][DEL_SW_IDX_SZ] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 227 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 228 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 229 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 230 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 231 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 232 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 233 }; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 234 961dc288f4ba1b drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c Joe Perches 2020-06-29 @235 static const u8 rtl8821ae_delta_swing_table_idx_5gb_p[][DEL_SW_IDX_SZ] = { 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 236 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 237 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 238 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 239 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 240 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 241 12, 12, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16}, 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 242 }; 21e4b0726dc671 drivers/net/wireless/rtlwifi/rtl8821ae/dm.c Larry Finger 2014-09-22 243 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip