mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [rmk-arm:zii 42/87] drivers/net/pcs/pcs-xpcs.c:178:16: error: implicit declaration of function 'mdiodev_c45_read'; did you mean 'mdiobus_c45_read'?
@ 2022-08-03 22:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-03 22:33 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: kbuild-all, linux-kernel

tree:   git://git.armlinux.org.uk/~rmk/linux-arm zii
head:   315d00812d1f8ed8bbbce4e4fd8d32fc883900a0
commit: 8994c74ee066d099110807ffcee3f61ffd62d28b [42/87] net: pcs: xpcs: use mdiodev accessors
config: arc-randconfig-r003-20220803 (https://download.01.org/0day-ci/archive/20220804/202208040620.UbUqOw7I-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm zii
        git checkout 8994c74ee066d099110807ffcee3f61ffd62d28b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/net/pcs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/pcs/pcs-xpcs.c: In function 'xpcs_read':
>> drivers/net/pcs/pcs-xpcs.c:178:16: error: implicit declaration of function 'mdiodev_c45_read'; did you mean 'mdiobus_c45_read'? [-Werror=implicit-function-declaration]
     178 |         return mdiodev_c45_read(xpcs->mdiodev, dev, reg);
         |                ^~~~~~~~~~~~~~~~
         |                mdiobus_c45_read
   drivers/net/pcs/pcs-xpcs.c: In function 'xpcs_write':
>> drivers/net/pcs/pcs-xpcs.c:183:16: error: implicit declaration of function 'mdiodev_c45_write'; did you mean 'mdiobus_c45_write'? [-Werror=implicit-function-declaration]
     183 |         return mdiodev_c45_write(xpcs->mdiodev, dev, reg, val);
         |                ^~~~~~~~~~~~~~~~~
         |                mdiobus_c45_write
   cc1: some warnings being treated as errors


vim +178 drivers/net/pcs/pcs-xpcs.c

   172	
   173	#define xpcs_linkmode_supported(compat, mode) \
   174		__xpcs_linkmode_supported(compat, ETHTOOL_LINK_MODE_ ## mode ## _BIT)
   175	
   176	int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg)
   177	{
 > 178		return mdiodev_c45_read(xpcs->mdiodev, dev, reg);
   179	}
   180	
   181	int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val)
   182	{
 > 183		return mdiodev_c45_write(xpcs->mdiodev, dev, reg, val);
   184	}
   185	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-03 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 22:33 [rmk-arm:zii 42/87] drivers/net/pcs/pcs-xpcs.c:178:16: error: implicit declaration of function 'mdiodev_c45_read'; did you mean 'mdiobus_c45_read'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®