[Uclinux-h8-devel] [uclinux-h8:rx-new 35/42] drivers/net/ethernet/renesas/sh_eth.c:1177:57: error: 'EESR_RTO' undeclared here (not in a function); did you mean 'EESR_RTSF'?

Back to archive index
kbuild test robot lkp****@intel*****
2018年 11月 5日 (月) 12:48:30 JST


tree:   git://git.sourceforge.jp/gitroot/uclinux-h8/linux rx-new
head:   ecde16be1b8bda3b1edb07a28670d4bfb8958352
commit: f1d29f28ab089041603ba43c823d70b37ebca646 [35/42] sh_eth: Add RX6xN support.
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout f1d29f28ab089041603ba43c823d70b37ebca646
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

>> drivers/net/ethernet/renesas/sh_eth.c:1177:57: error: 'EESR_RTO' undeclared here (not in a function); did you mean 'EESR_RTSF'?
     .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO,
                                                            ^~~~~~~~
                                                            EESR_RTSF
>> drivers/net/ethernet/renesas/sh_eth.c:1187:3: error: 'struct sh_eth_cpu_data' has no member named 'rpadir_value'; did you mean 'fdr_value'?
     .rpadir_value = 0x00020000, /* NET_IP_ALIGN assumed to be 2 */
      ^~~~~~~~~~~~
      fdr_value
>> drivers/net/ethernet/renesas/sh_eth.c:1187:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
     .rpadir_value = 0x00020000, /* NET_IP_ALIGN assumed to be 2 */
                     ^~~~~~~~~~
   drivers/net/ethernet/renesas/sh_eth.c: In function 'sh_eth_rx':
>> drivers/net/ethernet/renesas/sh_eth.c:1713:15: error: implicit declaration of function 'edmac_to_cpu'; did you mean 'rdmsr_on_cpu'? [-Werror=implicit-function-declaration]
       dma_addr = edmac_to_cpu(mdp, rxdesc->addr);
                  ^~~~~~~~~~~~
                  rdmsr_on_cpu
   drivers/net/ethernet/renesas/sh_eth.c: In function 'sh_eth_phy_init':
>> drivers/net/ethernet/renesas/sh_eth.c:2107:7: error: 'struct sh_eth_private' has no member named 'phydev'; did you mean 'pdev'?
     mdp->phydev = phydev;
          ^~~~~~
          pdev
   drivers/net/ethernet/renesas/sh_eth.c: At top level:
>> drivers/net/ethernet/renesas/sh_eth.c:3545:38: error: 'r8a777x_data' undeclared here (not in a function); did you mean 'r8a7740_data'?
     { "r8a777x-ether", (kernel_ulong_t)&r8a777x_data },
                                         ^~~~~~~~~~~~
                                         r8a7740_data
>> drivers/net/ethernet/renesas/sh_eth.c:3546:38: error: 'r8a779x_data' undeclared here (not in a function); did you mean 'r8a777x_data'?
     { "r8a7790-ether", (kernel_ulong_t)&r8a779x_data },
                                         ^~~~~~~~~~~~
                                         r8a777x_data
   cc1: some warnings being treated as errors

vim +1177 drivers/net/ethernet/renesas/sh_eth.c

  1166	
  1167	static struct sh_eth_cpu_data rx6xn_data = {
  1168		.set_duplex	= sh_eth_set_duplex_rx6xn,
  1169		.set_rate	= sh_eth_set_rate_rx6xn,
  1170	
  1171		.register_type	= SH_ETH_REG_FAST_SH4,
  1172	
  1173		.ecsr_value	= ECSR_PSRTO | ECSR_LCHNG | ECSR_ICD,
  1174		.ecsipr_value	= ECSIPR_PSRTOIP | ECSIPR_LCHNGIP | ECSIPR_ICDIP,
  1175		.eesipr_value	= 0x01ff009f,
  1176	
> 1177		.tx_check	= EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO,
  1178		.eesr_err_check	= EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE |
  1179				  EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE |
  1180				  EESR_ECI,
  1181	
  1182		.apr		= 1,
  1183		.mpr		= 1,
  1184		.tpauser	= 1,
  1185		.hw_swap	= 1,
  1186		.rpadir		= 1,
> 1187		.rpadir_value	= 0x00020000, /* NET_IP_ALIGN assumed to be 2 */
  1188	};
  1189	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Uclinux-h8-devel mailing list
Back to archive index