tree:
https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head: e9ec03c13f235a810e08f9797a0e826b994a8743
commit: 54251835782f2792cb404b5c12dd412deb72dd7c [31/44] net: phy: add rtl8367 switch phy
driver for r64 v0.1
config: s390-randconfig-r022-20211114 (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
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
#
https://github.com/frank-w/BPI-R2-4.14/commit/54251835782f2792cb404b5c12d...
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.15-rtl8367dsa
git checkout 54251835782f2792cb404b5c12dd412deb72dd7c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> cc1: error: drivers/net/phy/rtk/rtl8367c/include: No such file or
directory [-Werror=missing-include-dirs]
> cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
> drivers/net/phy/rtk/rtl8367s_mdio.c:45:14: error: no previous prototype for
'mii_mgr_read' [-Werror=missing-prototypes]
45 | unsigned int
mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data)
| ^~~~~~~~~~~~
> drivers/net/phy/rtk/rtl8367s_mdio.c:58:14: error: no previous
prototype for 'mii_mgr_write' [-Werror=missing-prototypes]
58 |
unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int
write_data)
| ^~~~~~~~~~~~~
> drivers/net/phy/rtk/rtl8367s_mdio.c:213:6: error: no previous
prototype for 'init_gsw' [-Werror=missing-prototypes]
213 | 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]
> cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
> drivers/net/phy/rtk/rtl8367s_dbg.c:169:5: error: no previous prototype for
'gsw_debug_proc_init' [-Werror=missing-prototypes]
169 | int
gsw_debug_proc_init(void)
| ^~~~~~~~~~~~~~~~~~~
> drivers/net/phy/rtk/rtl8367s_dbg.c:190:6: error: no previous
prototype for 'gsw_debug_proc_exit' [-Werror=missing-prototypes]
190 |
void gsw_debug_proc_exit(void)
| ^~~~~~~~~~~~~~~~~~~
> drivers/net/phy/rtk/rtl8367s_dbg.c:160:30: error:
'switch_vlan_fops' defined but not used [-Werror=unused-const-variable=]
160 | static const struct proc_ops switch_vlan_fops = {
| ^~~~~~~~~~~~~~~~
> drivers/net/phy/rtk/rtl8367s_dbg.c:152:30: error:
'switch_count_fops' defined but not used [-Werror=unused-const-variable=]
152 | static const struct proc_ops switch_count_fops = {
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/net/phy/rtk/rtl8367c/include: No such file or
directory [-Werror=missing-include-dirs]
> cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors
--
> cc1: error: drivers/net/phy/rtk/rtl8367c/include: No such file or
directory [-Werror=missing-include-dirs]
> cc1: error: include/linux/: 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]
> cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
drivers/net/phy/rtk/rtl8367c/stat.c: In function 'rtk_stat_global_get':
> drivers/net/phy/rtk/rtl8367c/stat.c:143:50: error: implicit
conversion from 'rtk_stat_global_type_t' {aka 'enum
rtk_stat_global_type_e'} to 'RTL8367C_MIBCOUNTER' {aka 'enum
RTL8367C_MIBCOUNTER_E'} [-Werror=enum-conversion]
143 | if ((retVal =
rtl8367c_getAsicMIBsCounter(0, cntr_idx, pCntr)) != RT_ERR_OK)
| ^~~~~~~~
drivers/net/phy/rtk/rtl8367c/stat.c: In function 'rtk_stat_global_getAll':
> drivers/net/phy/rtk/rtl8367c/stat.c:175:49: error: implicit
conversion from 'enum rtk_stat_global_type_e' to 'RTL8367C_MIBCOUNTER'
{aka 'enum RTL8367C_MIBCOUNTER_E'} [-Werror=enum-conversion]
175 |
if ((retVal = rtl8367c_getAsicMIBsCounter(0,DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX,
&pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/net/phy/rtk/rtl8367c/include: No such file or
directory [-Werror=missing-include-dirs]
> cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
drivers/net/phy/rtk/rtl8367c/vlan.c: In function
'rtk_vlan_protoAndPortBasedVlan_add':
> drivers/net/phy/rtk/rtl8367c/vlan.c:953:13: error: implicit
conversion from 'rtk_vlan_protoVlan_frameType_t' {aka 'enum
rtk_vlan_protoVlan_frameType_e'} to 'rtl8367c_provlan_frametype'
[-Werror=enum-conversion]
953 | tmp = pInfo->frame_type;
| ^
drivers/net/phy/rtk/rtl8367c/vlan.c:979:32: error: implicit conversion from
'rtk_vlan_protoVlan_frameType_t' {aka 'enum
rtk_vlan_protoVlan_frameType_e'} to 'rtl8367c_provlan_frametype'
[-Werror=enum-conversion]
979 | ppb_data_cfg.frameType = pInfo->frame_type;
| ^
drivers/net/phy/rtk/rtl8367c/vlan.c: In function 'rtk_vlan_tagMode_set':
> drivers/net/phy/rtk/rtl8367c/vlan.c:1270:84: error: implicit
conversion from 'rtk_vlan_tagMode_t' {aka 'enum rtk_vlan_tagMode_e'} to
'rtl8367c_egtagmode' [-Werror=enum-conversion]
1270 | if ((retVal =
rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), tag_mode)) != RT_ERR_OK)
|
^~~~~~~~
cc1: all warnings being treated as errors
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org