tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro head: 1952281ac3c335bf68742f52c06de02891690f43 commit: c6b9364c37cb5869d5c094186d57322c85bc677c [51/65] rtl8367: fix includes config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220101/202201010925.JNlUWO15-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/frank-w/BPI-R2-4.14/commit/c6b9364c37cb5869d5c094186d57322c85bc677c git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14 git fetch --no-tags frank-w-bpi-r2-4.14 5.16-r2pro git checkout c6b9364c37cb5869d5c094186d57322c85bc677c # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): cc1: error: drivers/net/phy/rtk/rtl8367c/include/: No such file or directory [-Werror=missing-include-dirs] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 43 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8367C)) | ^~~~~~~~~~ >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 112 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8370B)) | ^~~~~~~~~~ drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 181 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8364B)) | ^~~~~~~~~~ drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 250 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8363SC_VB)) | ^~~~~~~~~~ drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] cc1: all warnings being treated as errors -- cc1: error: drivers/net/phy/rtk/rtl8367c/include/: No such file or directory [-Werror=missing-include-dirs] >> drivers/net/phy/rtk/rtl8367rb_mdio.c:41:14: error: no previous prototype for 'mii_mgr_read' [-Werror=missing-prototypes] 41 | unsigned int mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data) | ^~~~~~~~~~~~ >> drivers/net/phy/rtk/rtl8367rb_mdio.c:55:14: error: no previous prototype for 'mii_mgr_write' [-Werror=missing-prototypes] 55 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int write_data) | ^~~~~~~~~~~~~ >> drivers/net/phy/rtk/rtl8367rb_mdio.c:235:6: error: no previous prototype for 'init_gsw' [-Werror=missing-prototypes] 235 | void init_gsw(void) | ^~~~~~~~ cc1: all warnings being treated as errors -- cc1: error: drivers/net/phy/rtk/rtl8367c/include/: No such file or directory [-Werror=missing-include-dirs] >> drivers/net/phy/rtk/rtl8367rb_dbg.c:598:5: error: no previous prototype for 'gsw_debug_proc_init' [-Werror=missing-prototypes] 598 | int gsw_debug_proc_init(void) | ^~~~~~~~~~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c: In function 'gsw_debug_proc_init': drivers/net/phy/rtk/rtl8367rb_dbg.c:605:48: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 605 | proc_create(PROCREG_ESW_CNT, 0, proc_reg_dir, &switch_count_fops); | ^~~~~~~~~~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:611:45: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 611 | proc_create(PROCREG_VLAN, 0, proc_reg_dir, &switch_vlan_fops); | ^~~~~~~~~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:617:48: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 617 | proc_create(PROCREG_MAC_TBL, 0, proc_reg_dir, &mac_tbl_fops); | ^~~~~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:623:44: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 623 | proc_create(PROCREG_REG, 0, proc_reg_dir, ®_fops); | ^~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:629:47: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 629 | proc_create(PROCREG_PHYREG, 0, proc_reg_dir, &phyreg_fops); | ^~~~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:635:47: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 635 | proc_create(PROCREG_MIRROR, 0, proc_reg_dir, &mirror_fops); | ^~~~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c:641:45: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 641 | proc_create(PROCREG_IGMP, 0, proc_reg_dir, &igmp_fops); | ^~~~~~~~~~ | | | const struct file_operations * In file included from drivers/net/phy/rtk/rtl8367rb_dbg.c:4: include/linux/proc_fs.h:110:24: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *' 110 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ drivers/net/phy/rtk/rtl8367rb_dbg.c: At top level: >> drivers/net/phy/rtk/rtl8367rb_dbg.c:649:6: error: no previous prototype for 'gsw_debug_proc_exit' [-Werror=missing-prototypes] 649 | void gsw_debug_proc_exit(void) | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/defined +43 drivers/net/phy/rtk/rtl8367c/rtk_switch.c 9e69038811fbd1 Frank Wunderlich 2021-12-28 @43 #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8367C)) :::::: The code at line 43 was first introduced by commit :::::: 9e69038811fbd1a4c478ccda3817426a3f4af504 rtl8367: add phy-driver from vendor :::::: TO: Frank Wunderlich :::::: CC: Frank Wunderlich --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org