tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup head: ab2bf016efcd6603fab18068c1f3dd76f1389f7f commit: 8cc1d21c4abb620671c8011ba78a17ad2430b93a [67/70] realtek: no need to check return value of debugfs_create functions config: sh-allmodconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 8cc1d21c4abb620671c8011ba78a17ad2430b93a # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=sh All errors (new ones prefixed by >>): drivers/net/wireless/realtek/rtlwifi/debug.c: In function 'rtl_debug_add_one': >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:489:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_0); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:489:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_0); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:490:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_1); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:490:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_1); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:491:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_2); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:491:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_2); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:492:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_3); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:492:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_3); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:493:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_4); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:493:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_4); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:494:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_5); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:494:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_5); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:495:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_6); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:495:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_6); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:496:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_7); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:496:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_7); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:497:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(bb_8); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:497:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(bb_8); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected ';' before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:498:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(bb_9); ^~~~~~~~~~~~~~~ >> drivers/net/wireless/realtek/rtlwifi/debug.c:468:30: error: expected statement before ')' token &file_ops_ ##fopname)) \ ^ drivers/net/wireless/realtek/rtlwifi/debug.c:472:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtlwifi/debug.c:498:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(bb_9); ^~~~~~~~~~~~~~~ vim +468 drivers/net/wireless/realtek/rtlwifi/debug.c 610247f4 Ping-Ke Shih 2017-12-29 462 610247f4 Ping-Ke Shih 2017-12-29 463 #define RTL_DEBUGFS_ADD_CORE(name, mode, fopname) \ 610247f4 Ping-Ke Shih 2017-12-29 464 do { \ 610247f4 Ping-Ke Shih 2017-12-29 465 rtl_debug_priv_ ##name.rtlpriv = rtlpriv; \ 8cc1d21c Greg Kroah-Hartman 2019-01-03 466 debugfs_create_file(#name, mode, parent, \ 8cc1d21c Greg Kroah-Hartman 2019-01-03 467 &rtl_debug_priv_ ##name, \ 610247f4 Ping-Ke Shih 2017-12-29 @468 &file_ops_ ##fopname)) \ 610247f4 Ping-Ke Shih 2017-12-29 469 } while (0) 610247f4 Ping-Ke Shih 2017-12-29 470 :::::: The code at line 468 was first introduced by commit :::::: 610247f46feb23beda99d0bb44aa8f51a8dc27e1 rtlwifi: Improve debugging by using debugfs :::::: TO: Ping-Ke Shih <pkshih@xxxxxxxxxxx> :::::: CC: Kalle Valo <kvalo@xxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel