netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Divya Koppera <divya.koppera@microchip.com>,
	andrew@lunn.ch, arun.ramadoss@microchip.com,
	UNGLinuxDriver@microchip.com, hkallweit1@gmail.com,
	linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, richardcochran@gmail.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH net-next 4/5] net: phy: Makefile: Add makefile support for ptp in Microchip phys
Date: Tue, 5 Nov 2024 11:57:11 +0800	[thread overview]
Message-ID: <202411051137.XUgYrwtP-lkp@intel.com> (raw)
In-Reply-To: <20241104090750.12942-5-divya.koppera@microchip.com>

Hi Divya,

kernel test robot noticed the following build errors:

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

url:    https://github.com/intel-lab-lkp/linux/commits/Divya-Koppera/net-phy-microchip_ptp-Add-header-file-for-Microchip-ptp-library/20241104-171132
base:   net-next/main
patch link:    https://lore.kernel.org/r/20241104090750.12942-5-divya.koppera%40microchip.com
patch subject: [PATCH net-next 4/5] net: phy: Makefile: Add makefile support for ptp in Microchip phys
config: powerpc64-randconfig-r063-20241105 (https://download.01.org/0day-ci/archive/20241105/202411051137.XUgYrwtP-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411051137.XUgYrwtP-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411051137.XUgYrwtP-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/phy/microchip_ptp.c:4:
   drivers/net/phy/microchip_ptp.h:197:60: warning: declaration of 'struct phy_device' will not be visible outside of this function [-Wvisibility]
   static inline struct mchp_ptp_clock *mchp_ptp_probe(struct phy_device *phydev,
                                                              ^
   drivers/net/phy/microchip_ptp.h:198:11: error: unknown type name 'u8'
                                                       u8 mmd, u16 clk_base,
                                                       ^
   drivers/net/phy/microchip_ptp.h:198:19: error: unknown type name 'u16'
                                                       u8 mmd, u16 clk_base,
                                                               ^
   drivers/net/phy/microchip_ptp.h:199:11: error: unknown type name 'u16'
                                                       u16 port_base)
                                                       ^
   drivers/net/phy/microchip_ptp.h:205:12: error: unknown type name 'u16'
                                          u16 reg, u16 val, bool enable)
                                          ^
   drivers/net/phy/microchip_ptp.h:205:21: error: unknown type name 'u16'
                                          u16 reg, u16 val, bool enable)
                                                   ^
   drivers/net/phy/microchip_ptp.h:205:30: error: unknown type name 'bool'
                                          u16 reg, u16 val, bool enable)
                                                            ^
   drivers/net/phy/microchip_ptp.h:210:15: error: unknown type name 'irqreturn_t'
   static inline irqreturn_t mchp_ptp_handle_interrupt(struct mchp_ptp_clock *ptp_clock)
                 ^
   drivers/net/phy/microchip_ptp.h:212:9: error: use of undeclared identifier 'IRQ_NONE'
           return IRQ_NONE;
                  ^
   drivers/net/phy/microchip_ptp.c:7:16: warning: declaration of 'enum ptp_fifo_dir' will not be visible outside of this function [-Wvisibility]
                                  enum ptp_fifo_dir dir)
                                       ^
   drivers/net/phy/microchip_ptp.c:7:29: error: variable has incomplete type 'enum ptp_fifo_dir'
                                  enum ptp_fifo_dir dir)
                                                    ^
   drivers/net/phy/microchip_ptp.c:7:16: note: forward declaration of 'enum ptp_fifo_dir'
                                  enum ptp_fifo_dir dir)
                                       ^
   drivers/net/phy/microchip_ptp.c:9:39: error: incomplete definition of type 'struct mchp_ptp_clock'
           struct phy_device *phydev = ptp_clock->phydev;
                                       ~~~~~~~~~^
   drivers/net/phy/microchip_ptp.h:197:22: note: forward declaration of 'struct mchp_ptp_clock'
   static inline struct mchp_ptp_clock *mchp_ptp_probe(struct phy_device *phydev,
                        ^
   drivers/net/phy/microchip_ptp.c:12:22: error: use of undeclared identifier 'MCHP_PTP_FIFO_SIZE'
           for (int i = 0; i < MCHP_PTP_FIFO_SIZE; ++i) {
                               ^
>> drivers/net/phy/microchip_ptp.c:13:8: error: implicit declaration of function 'phy_read_mmd' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   rc = phy_read_mmd(phydev, PTP_MMD(ptp_clock),
                        ^
>> drivers/net/phy/microchip_ptp.c:13:29: error: implicit declaration of function 'PTP_MMD' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   rc = phy_read_mmd(phydev, PTP_MMD(ptp_clock),
                                             ^
   drivers/net/phy/microchip_ptp.c:14:14: error: use of undeclared identifier 'PTP_EGRESS_FIFO'
                                     dir == PTP_EGRESS_FIFO ?
                                            ^
>> drivers/net/phy/microchip_ptp.c:15:7: error: implicit declaration of function 'MCHP_PTP_TX_MSG_HEADER2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                     MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
                                     ^
>> drivers/net/phy/microchip_ptp.c:15:31: error: implicit declaration of function 'BASE_PORT' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                     MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
                                                             ^
>> drivers/net/phy/microchip_ptp.c:16:7: error: implicit declaration of function 'MCHP_PTP_RX_MSG_HEADER2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                     MCHP_PTP_RX_MSG_HEADER2(BASE_PORT(ptp_clock)));
                                     ^
   drivers/net/phy/microchip_ptp.c:16:7: note: did you mean 'MCHP_PTP_TX_MSG_HEADER2'?
   drivers/net/phy/microchip_ptp.c:15:7: note: 'MCHP_PTP_TX_MSG_HEADER2' declared here
                                     MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
                                     ^
   drivers/net/phy/microchip_ptp.c:20:9: error: implicit declaration of function 'phy_read_mmd' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           return phy_read_mmd(phydev, PTP_MMD(ptp_clock),
                  ^
   drivers/net/phy/microchip_ptp.c:20:30: error: implicit declaration of function 'PTP_MMD' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           return phy_read_mmd(phydev, PTP_MMD(ptp_clock),
                                       ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   2 warnings and 20 errors generated.


vim +/phy_read_mmd +13 drivers/net/phy/microchip_ptp.c

cf630bd2326111 Divya Koppera 2024-11-04   5  
cf630bd2326111 Divya Koppera 2024-11-04   6  static int mchp_ptp_flush_fifo(struct mchp_ptp_clock *ptp_clock,
cf630bd2326111 Divya Koppera 2024-11-04   7  			       enum ptp_fifo_dir dir)
cf630bd2326111 Divya Koppera 2024-11-04   8  {
cf630bd2326111 Divya Koppera 2024-11-04   9  	struct phy_device *phydev = ptp_clock->phydev;
cf630bd2326111 Divya Koppera 2024-11-04  10  	int rc;
cf630bd2326111 Divya Koppera 2024-11-04  11  
cf630bd2326111 Divya Koppera 2024-11-04  12  	for (int i = 0; i < MCHP_PTP_FIFO_SIZE; ++i) {
cf630bd2326111 Divya Koppera 2024-11-04 @13  		rc = phy_read_mmd(phydev, PTP_MMD(ptp_clock),
cf630bd2326111 Divya Koppera 2024-11-04  14  				  dir == PTP_EGRESS_FIFO ?
cf630bd2326111 Divya Koppera 2024-11-04 @15  				  MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
cf630bd2326111 Divya Koppera 2024-11-04 @16  				  MCHP_PTP_RX_MSG_HEADER2(BASE_PORT(ptp_clock)));
cf630bd2326111 Divya Koppera 2024-11-04  17  		if (rc < 0)
cf630bd2326111 Divya Koppera 2024-11-04  18  			return rc;
cf630bd2326111 Divya Koppera 2024-11-04  19  	}
cf630bd2326111 Divya Koppera 2024-11-04  20  	return phy_read_mmd(phydev, PTP_MMD(ptp_clock),
cf630bd2326111 Divya Koppera 2024-11-04  21  			    MCHP_PTP_INT_STS(BASE_PORT(ptp_clock)));
cf630bd2326111 Divya Koppera 2024-11-04  22  }
cf630bd2326111 Divya Koppera 2024-11-04  23  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-11-05  3:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04  9:07 [PATCH net-next 0/5] Add ptp library for Microchip phys Divya Koppera
2024-11-04  9:07 ` [PATCH net-next 1/5] net: phy: microchip_ptp : Add header file for Microchip ptp library Divya Koppera
2024-11-04  9:07 ` [PATCH net-next 2/5] net: phy: microchip_ptp : Add ptp library for Microchip phys Divya Koppera
2024-11-04 12:32   ` Vadim Fedorenko
2024-11-05 10:08     ` Divya.Koppera
2024-11-07 14:34   ` Simon Horman
2024-11-11  4:55     ` Divya.Koppera
2024-11-04  9:07 ` [PATCH net-next 3/5] net: phy: Kconfig: Add ptp library support and 1588 optional flag in " Divya Koppera
2024-11-04  9:07 ` [PATCH net-next 4/5] net: phy: Makefile: Add makefile support for ptp " Divya Koppera
2024-11-05  1:40   ` kernel test robot
2024-11-05  3:57   ` kernel test robot [this message]
2024-11-04  9:07 ` [PATCH net-next 5/5] net: phy: microchip_t1 : Add initialization of ptp for lan887x Divya Koppera
2024-11-04 14:04   ` Andrew Lunn
2024-11-05  6:17     ` Divya.Koppera
2024-11-05  3:14   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202411051137.XUgYrwtP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=andrew@lunn.ch \
    --cc=arun.ramadoss@microchip.com \
    --cc=davem@davemloft.net \
    --cc=divya.koppera@microchip.com \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).