lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202411050939.88HGuanR-lkp@intel.com>
Date: Tue, 5 Nov 2024 09:40:32 +0800
From: kernel test robot <lkp@...el.com>
To: Divya Koppera <divya.koppera@...rochip.com>, andrew@...n.ch,
	arun.ramadoss@...rochip.com, UNGLinuxDriver@...rochip.com,
	hkallweit1@...il.com, linux@...linux.org.uk, davem@...emloft.net,
	edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
	richardcochran@...il.com
Cc: oe-kbuild-all@...ts.linux.dev
Subject: Re: [PATCH net-next 4/5] net: phy: Makefile: Add makefile support
 for ptp in Microchip phys

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ