From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8947723445769775494==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [frank-w-bpi-r2-4.14:5.16-r2pro 51/65] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defined" may not be portable Date: Sat, 01 Jan 2022 09:26:11 +0800 Message-ID: <202201010925.JNlUWO15-lkp@intel.com> List-Id: --===============8947723445769775494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro head: 1952281ac3c335bf68742f52c06de02891690f43 commit: c6b9364c37cb5869d5c094186d57322c85bc677c [51/65] rtl8367: fix inclu= des config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/202201= 01/202201010925.JNlUWO15-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/frank-w/BPI-R2-4.14/commit/c6b9364c37cb5869d5c= 094186d57322c85bc677c git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R= 2-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=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/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 direc= tory [-Werror=3Dmissing-include-dirs] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defi= ned" may not be portable [-Werror=3Dexpansion-to-defined] 43 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8367C)) | ^~~~~~~~~~ >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defi= ned" may not be portable [-Werror=3Dexpansion-to-defined] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defi= ned" may not be portable [-Werror=3Dexpansion-to-defined] >> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: this use of "defi= ned" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] 112 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8370B)) | ^~~~~~~~~~ drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] 181 | #if (AUTO_PROBE || defined(FORCE_PROBE_RTL8364B)) | ^~~~~~~~~~ drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-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 "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: this use of "def= ined" may not be portable [-Werror=3Dexpansion-to-defined] cc1: all warnings being treated as errors -- cc1: error: drivers/net/phy/rtk/rtl8367c/include/: No such file or direc= tory [-Werror=3Dmissing-include-dirs] >> drivers/net/phy/rtk/rtl8367rb_mdio.c:41:14: error: no previous prototype= for 'mii_mgr_read' [-Werror=3Dmissing-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=3Dmissing-prototypes] 55 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int ph= y_register,unsigned int write_data) | ^~~~~~~~~~~~~ >> drivers/net/phy/rtk/rtl8367rb_mdio.c:235:6: error: no previous prototype= for 'init_gsw' [-Werror=3Dmissing-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 direc= tory [-Werror=3Dmissing-include-dirs] >> drivers/net/phy/rtk/rtl8367rb_dbg.c:598:5: error: no previous prototype = for 'gsw_debug_proc_init' [-Werror=3Dmissing-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=3Dincompatible-point= er-types] 605 | proc_create(PROCREG_ESW_CNT, 0, proc_reg_dir, &switch_count_fop= s); | ^~~~~~~~~~~~~~~~~~ | | | 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 mod= e, 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=3Dincompatible-point= er-types] 611 | proc_create(PROCREG_VLAN, 0, proc_reg_dir, &switch_vlan_fops); | ^~~~~~~~~~~~~~~~~ | | | const struct file_op= erations * 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 mod= e, 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=3Dincompatible-point= er-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 mod= e, 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=3Dincompatible-point= er-types] 623 | proc_create(PROCREG_REG, 0, proc_reg_dir, ®_fops); | ^~~~~~~~~ | | | const struct file_ope= rations * 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 mod= e, 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=3Dincompatible-point= er-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 mod= e, 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=3Dincompatible-point= er-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 mod= e, 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=3Dincompatible-point= er-types] 641 | proc_create(PROCREG_IGMP, 0, proc_reg_dir, &igmp_fops); | ^~~~~~~~~~ | | | const struct file_op= erations * 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 mod= e, 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=3Dmissing-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 fro= m 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 --===============8947723445769775494==--