* [morimoto:renesas-bsp/v6.1.112-2024-10-03-2 865/874] drivers/net/phy/marvell-88q2xxx.c:160:8: error: call to undeclared function 'genphy_c45_pma_baset1_read_abilities'; ISO C99 and later do not support implicit function declarations
@ 2024-10-06 9:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-06 9:50 UTC (permalink / raw)
To: Stefan Eichenberger
Cc: llvm, oe-kbuild-all, Kuninori Morimoto, Andrew Lunn, Paolo Abeni
tree: https://github.com/morimoto/linux renesas-bsp/v6.1.112-2024-10-03-2
head: a62d720bf07c29f512cd9a2785e089c98277256f
commit: ed34f19dbdc7a70ed09e863a509fb79f127694a3 [865/874] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2110 PHY
config: s390-randconfig-002-20241006 (https://download.01.org/0day-ci/archive/20241006/202410061759.FT55A4Fy-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241006/202410061759.FT55A4Fy-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/202410061759.FT55A4Fy-lkp@intel.com/
All errors (new ones prefixed by >>):
~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from drivers/net/phy/marvell-88q2xxx.c:5:
In file included from include/linux/ethtool_netlink.h:6:
In file included from include/uapi/linux/ethtool_netlink.h:12:
In file included from include/linux/ethtool.h:18:
In file included from include/linux/netlink.h:7:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from drivers/net/phy/marvell-88q2xxx.c:5:
In file included from include/linux/ethtool_netlink.h:6:
In file included from include/uapi/linux/ethtool_netlink.h:12:
In file included from include/linux/ethtool.h:18:
In file included from include/linux/netlink.h:7:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
drivers/net/phy/marvell-88q2xxx.c:36:8: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL'
MDIO_PCS_1000BT1_CTRL, MDIO_PCS_1000BT1_CTRL_RESET);
^
drivers/net/phy/marvell-88q2xxx.c:36:31: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL_RESET'
MDIO_PCS_1000BT1_CTRL, MDIO_PCS_1000BT1_CTRL_RESET);
^
drivers/net/phy/marvell-88q2xxx.c:41:7: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL'
MDIO_PCS_1000BT1_CTRL, val,
^
drivers/net/phy/marvell-88q2xxx.c:42:15: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL_RESET'
!(val & MDIO_PCS_1000BT1_CTRL_RESET),
^
drivers/net/phy/marvell-88q2xxx.c:41:7: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL'
MDIO_PCS_1000BT1_CTRL, val,
^
drivers/net/phy/marvell-88q2xxx.c:42:15: error: use of undeclared identifier 'MDIO_PCS_1000BT1_CTRL_RESET'
!(val & MDIO_PCS_1000BT1_CTRL_RESET),
^
drivers/net/phy/marvell-88q2xxx.c:40:9: error: initializing 'int' with an expression of incompatible type 'void'
return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_PCS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/phy.h:1146:6: note: expanded from macro 'phy_read_mmd_poll_timeout'
int __ret = read_poll_timeout(phy_read_mmd, val, (cond) || val < 0, \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/marvell-88q2xxx.c:66:45: error: use of undeclared identifier 'MDIO_PCS_1000BT1_STAT'
ret = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_PCS_1000BT1_STAT);
^
drivers/net/phy/marvell-88q2xxx.c:69:19: error: use of undeclared identifier 'MDIO_PCS_1000BT1_STAT_LINK'
else if (ret & MDIO_PCS_1000BT1_STAT_LINK)
^
drivers/net/phy/marvell-88q2xxx.c:74:45: error: use of undeclared identifier 'MDIO_PCS_1000BT1_STAT'
ret = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_PCS_1000BT1_STAT);
^
drivers/net/phy/marvell-88q2xxx.c:77:19: error: use of undeclared identifier 'MDIO_PCS_1000BT1_STAT_LINK'
else if (ret & MDIO_PCS_1000BT1_STAT_LINK)
^
>> drivers/net/phy/marvell-88q2xxx.c:160:8: error: call to undeclared function 'genphy_c45_pma_baset1_read_abilities'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
ret = genphy_c45_pma_baset1_read_abilities(phydev);
^
drivers/net/phy/marvell-88q2xxx.c:160:8: note: did you mean 'genphy_c45_pma_read_abilities'?
include/linux/phy.h:1664:5: note: 'genphy_c45_pma_read_abilities' declared here
int genphy_c45_pma_read_abilities(struct phy_device *phydev);
^
12 warnings and 12 errors generated.
vim +/genphy_c45_pma_baset1_read_abilities +160 drivers/net/phy/marvell-88q2xxx.c
147
148 static int mv88q2xxx_get_features(struct phy_device *phydev)
149 {
150 int ret;
151
152 ret = genphy_c45_pma_read_abilities(phydev);
153 if (ret)
154 return ret;
155
156 /* We need to read the baset1 extended abilities manually because the
157 * PHY does not signalize it has the extended abilities register
158 * available.
159 */
> 160 ret = genphy_c45_pma_baset1_read_abilities(phydev);
161 if (ret)
162 return ret;
163
164 /* The PHY signalizes it supports autonegotiation. Unfortunately, so
165 * far it was not possible to get a link even when following the init
166 * sequence provided by Marvell. Disable it for now until a proper
167 * workaround is found or a new PHY revision is released.
168 */
169 linkmode_clear_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported);
170
171 return 0;
172 }
173
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-06 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-06 9:50 [morimoto:renesas-bsp/v6.1.112-2024-10-03-2 865/874] drivers/net/phy/marvell-88q2xxx.c:160:8: error: call to undeclared function 'genphy_c45_pma_baset1_read_abilities'; ISO C99 and later do not support implicit function declarations 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;
as well as URLs for NNTP newsgroup(s).