Subject: Re: [PATCH V4 net-next 2/6] net: Introduce a new MII time stamping interface.

From: kbuild test robot <[email-masked]>
Date: Sat, 1 Jun 2019 01:08:46 +0800

Hi Richard,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Richard-Cochran/Peer-to-Peer-One-Step-time-stamping/20190531-213601
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email-masked]>

All errors (new ones prefixed by >>):

   drivers/net/ethernet/ti/netcp_ethss.c: In function 'gbe_txtstamp_mark_pkt':
>> drivers/net/ethernet/ti/netcp_ethss.c:2535:50: error: 'struct phy_driver' has no member named 'txtstamp'
    #define HAS_PHY_TXTSTAMP(p) ((p)->drv && (p)->drv->txtstamp)
                                                     ^
   drivers/net/ethernet/ti/netcp_ethss.c:2568:16: note: in expansion of macro 'HAS_PHY_TXTSTAMP'
     if (phydev && HAS_PHY_TXTSTAMP(phydev)) {
                   ^~~~~~~~~~~~~~~~
   drivers/net/ethernet/ti/netcp_ethss.c: In function 'gbe_rxtstamp':
>> drivers/net/ethernet/ti/netcp_ethss.c:2536:50: error: 'struct phy_driver' has no member named 'rxtstamp'
    #define HAS_PHY_RXTSTAMP(p) ((p)->drv && (p)->drv->rxtstamp)
                                                     ^
   drivers/net/ethernet/ti/netcp_ethss.c:2590:16: note: in expansion of macro 'HAS_PHY_RXTSTAMP'
     if (phydev && HAS_PHY_RXTSTAMP(phydev)) {
                   ^~~~~~~~~~~~~~~~
   drivers/net/ethernet/ti/netcp_ethss.c: In function 'gbe_ioctl':
>> drivers/net/ethernet/ti/netcp_ethss.c:2832:23: error: 'struct phy_driver' has no member named 'hwtstamp'
     if (!phy || !phy->drv->hwtstamp) {
                          ^~

vim +2535 drivers/net/ethernet/ti/netcp_ethss.c

6f8d3f33 Wingman Kwok 2015-01-15  2533  
6246168b WingMan Kwok 2016-12-08  2534  #if IS_ENABLED(CONFIG_TI_CPTS)
6246168b WingMan Kwok 2016-12-08 @2535  #define HAS_PHY_TXTSTAMP(p) ((p)->drv && (p)->drv->txtstamp)
6246168b WingMan Kwok 2016-12-08 @2536  #define HAS_PHY_RXTSTAMP(p) ((p)->drv && (p)->drv->rxtstamp)
6246168b WingMan Kwok 2016-12-08  2537  

:::::: The code at line 2535 was first introduced by commit
:::::: 6246168b4a38357b135d07370464f27d4f3a68ce net: ethernet: ti: netcp: add support of cpts

:::::: TO: WingMan Kwok <[email-masked]>
:::::: CC: David S. Miller <[email-masked]>

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