tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git debugfs_cleanup head: 1c66923f2afb1578348d1f92ce01c1b9f5216dd4 commit: 1c66923f2afb1578348d1f92ce01c1b9f5216dd4 [109/109] usb: debugfs cleanup - try 2 config: i386-randconfig-i0-201821 (attached as .config) compiler: gcc-8 (Debian 8.1.0-3) 8.1.0 reproduce: git checkout 1c66923f2afb1578348d1f92ce01c1b9f5216dd4 # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): drivers/staging/rtlwifi/debug.c: In function 'rtl_debug_add_one': >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:565:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_0); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:565:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_0); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:565:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_0); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:566:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_1); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:566:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_1); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:566:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_1); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:567:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_2); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:567:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_2); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:567:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_2); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:568:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_3); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:568:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_3); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:568:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_3); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:569:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_4); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:569:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_4); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:569:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_4); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:570:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_5); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:570:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_5); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:533:3: error: too few arguments to function 'debugfs_create_file' debugfs_create_file(#name, mode, parent \ ^~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:570:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_5); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: declared here struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:534:9: error: invalid operands to binary & (have 'struct dentry *' and 'struct rtl_debugfs_priv') &rtl_debug_priv_ ##name, \ ^ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:571:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_6); ^~~~~~~~~~~~~~~ >> drivers/staging/rtlwifi/debug.c:535:9: warning: passing argument 4 of 'debugfs_create_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] &file_ops_ ##fopname); \ ^~~~~~~~~~ drivers/staging/rtlwifi/debug.c:539:3: note: in expansion of macro 'RTL_DEBUGFS_ADD_CORE' RTL_DEBUGFS_ADD_CORE(name, S_IFREG | 0444, common) ^~~~~~~~~~~~~~~~~~~~ drivers/staging/rtlwifi/debug.c:571:2: note: in expansion of macro 'RTL_DEBUGFS_ADD' RTL_DEBUGFS_ADD(mac_6); ^~~~~~~~~~~~~~~ In file included from include/net/cfg80211.h:17, from include/net/mac80211.h:24, from drivers/staging/rtlwifi/wifi.h:36, from drivers/staging/rtlwifi/debug.c:25: include/linux/debugfs.h:61:16: note: expected 'void *' but argument is of type 'const struct file_operations *' struct dentry *debugfs_create_file(const char *name, umode_t mode, ^~~~~~~~~~~~~~~~~~~ vim +534 drivers/staging/rtlwifi/debug.c 529 530 #define RTL_DEBUGFS_ADD_CORE(name, mode, fopname) \ 531 do { \ 532 rtl_debug_priv_ ##name.rtlpriv = rtlpriv; \ > 533 debugfs_create_file(#name, mode, parent \ > 534 &rtl_debug_priv_ ##name, \ > 535 &file_ops_ ##fopname); \ 536 } while (0) 537 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip