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 09:40:32 +0800	[thread overview]
Message-ID: <202411050939.88HGuanR-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: i386-randconfig-052-20241105 (https://download.01.org/0day-ci/archive/20241105/202411050939.88HGuanR-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050939.88HGuanR-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/202411050939.88HGuanR-lkp@intel.com/

All error/warnings (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]
     197 | 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'
     198 |                                                     u8 mmd, u16 clk_base,
         |                                                     ^
>> drivers/net/phy/microchip_ptp.h:198:19: error: unknown type name 'u16'
     198 |                                                     u8 mmd, u16 clk_base,
         |                                                             ^
   drivers/net/phy/microchip_ptp.h:199:11: error: unknown type name 'u16'
     199 |                                                     u16 port_base)
         |                                                     ^
   drivers/net/phy/microchip_ptp.h:205:12: error: unknown type name 'u16'
     205 |                                        u16 reg, u16 val, bool enable)
         |                                        ^
   drivers/net/phy/microchip_ptp.h:205:21: error: unknown type name 'u16'
     205 |                                        u16 reg, u16 val, bool enable)
         |                                                 ^
>> drivers/net/phy/microchip_ptp.h:205:30: error: unknown type name 'bool'
     205 |                                        u16 reg, u16 val, bool enable)
         |                                                          ^
>> drivers/net/phy/microchip_ptp.h:210:15: error: unknown type name 'irqreturn_t'
     210 | 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'
     212 |         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]
       7 |                                enum ptp_fifo_dir dir)
         |                                     ^
>> drivers/net/phy/microchip_ptp.c:7:29: error: variable has incomplete type 'enum ptp_fifo_dir'
       7 |                                enum ptp_fifo_dir dir)
         |                                                  ^
   drivers/net/phy/microchip_ptp.c:7:16: note: forward declaration of 'enum ptp_fifo_dir'
       7 |                                enum ptp_fifo_dir dir)
         |                                     ^
>> drivers/net/phy/microchip_ptp.c:9:39: error: incomplete definition of type 'struct mchp_ptp_clock'
       9 |         struct phy_device *phydev = ptp_clock->phydev;
         |                                     ~~~~~~~~~^
   drivers/net/phy/microchip_ptp.h:197:22: note: forward declaration of 'struct mchp_ptp_clock'
     197 | 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'
      12 |         for (int i = 0; i < MCHP_PTP_FIFO_SIZE; ++i) {
         |                             ^
>> drivers/net/phy/microchip_ptp.c:13:8: error: call to undeclared function 'phy_read_mmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      13 |                 rc = phy_read_mmd(phydev, PTP_MMD(ptp_clock),
         |                      ^
>> drivers/net/phy/microchip_ptp.c:13:29: error: call to undeclared function 'PTP_MMD'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      13 |                 rc = phy_read_mmd(phydev, PTP_MMD(ptp_clock),
         |                                           ^
>> drivers/net/phy/microchip_ptp.c:15:7: error: call to undeclared function 'MCHP_PTP_TX_MSG_HEADER2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      15 |                                   MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
         |                                   ^
>> drivers/net/phy/microchip_ptp.c:15:31: error: call to undeclared function 'BASE_PORT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      15 |                                   MCHP_PTP_TX_MSG_HEADER2(BASE_PORT(ptp_clock)) :
         |                                                           ^
>> drivers/net/phy/microchip_ptp.c:16:7: error: call to undeclared function 'MCHP_PTP_RX_MSG_HEADER2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      16 |                                   MCHP_PTP_RX_MSG_HEADER2(BASE_PORT(ptp_clock)));
         |                                   ^
>> drivers/net/phy/microchip_ptp.c:14:14: error: use of undeclared identifier 'PTP_EGRESS_FIFO'
      14 |                                   dir == PTP_EGRESS_FIFO ?
         |                                          ^
   drivers/net/phy/microchip_ptp.c:20:9: error: call to undeclared function 'phy_read_mmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      20 |         return phy_read_mmd(phydev, PTP_MMD(ptp_clock),
         |                ^
   drivers/net/phy/microchip_ptp.c:20:30: error: call to undeclared function 'PTP_MMD'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      20 |         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 +/u8 +198 drivers/net/phy/microchip_ptp.h

ca38715fe9dd463 Divya Koppera 2024-11-04  196  
ca38715fe9dd463 Divya Koppera 2024-11-04 @197  static inline struct mchp_ptp_clock *mchp_ptp_probe(struct phy_device *phydev,
ca38715fe9dd463 Divya Koppera 2024-11-04 @198  						    u8 mmd, u16 clk_base,
ca38715fe9dd463 Divya Koppera 2024-11-04  199  						    u16 port_base)
ca38715fe9dd463 Divya Koppera 2024-11-04  200  {
ca38715fe9dd463 Divya Koppera 2024-11-04  201  	return 0;
ca38715fe9dd463 Divya Koppera 2024-11-04  202  }
ca38715fe9dd463 Divya Koppera 2024-11-04  203  
ca38715fe9dd463 Divya Koppera 2024-11-04  204  static inline int mchp_config_ptp_intr(struct mchp_ptp_clock *ptp_clock,
ca38715fe9dd463 Divya Koppera 2024-11-04 @205  				       u16 reg, u16 val, bool enable)
ca38715fe9dd463 Divya Koppera 2024-11-04  206  {
ca38715fe9dd463 Divya Koppera 2024-11-04  207  	return 0;
ca38715fe9dd463 Divya Koppera 2024-11-04  208  }
ca38715fe9dd463 Divya Koppera 2024-11-04  209  
ca38715fe9dd463 Divya Koppera 2024-11-04 @210  static inline irqreturn_t mchp_ptp_handle_interrupt(struct mchp_ptp_clock *ptp_clock)
ca38715fe9dd463 Divya Koppera 2024-11-04  211  {
ca38715fe9dd463 Divya Koppera 2024-11-04 @212  	return IRQ_NONE;
ca38715fe9dd463 Divya Koppera 2024-11-04  213  }
ca38715fe9dd463 Divya Koppera 2024-11-04  214  

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

  reply	other threads:[~2024-11-05  1:41 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 [this message]
2024-11-05  3:57   ` kernel test robot
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=202411050939.88HGuanR-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).