From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-arm-kernel@lists.infradead.org
Subject: [arm:zii 147/186] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *'
Date: Mon, 13 Dec 2021 12:55:30 +0800 [thread overview]
Message-ID: <202112131233.tkpcN3nU-lkp@intel.com> (raw)
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: bc8489278c9545054f74b2226d3e2c09ec4e05fe
commit: 7123048813642c4842fcf8e6f4ce6315926cc164 [147/186] net: axienet: convert to phylink_pcs
config: riscv-randconfig-c006-20211212 (https://download.01.org/0day-ci/archive/20211213/202112131233.tkpcN3nU-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 7123048813642c4842fcf8e6f4ce6315926cc164
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/ethernet/xilinx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1523:33: error: use of undeclared identifier 'lp'
phylink_mii_c22_pcs_an_restart(lp->pcs_phy);
^
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1532:53: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1537:8: error: use of undeclared identifier 'iface'
iface == PHY_INTERFACE_MODE_SGMII ?
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1554:16: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') with an expression of type 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') [-Werror,-Wincompatible-function-pointer-types]
.pcs_config = axienet_pcs_config,
^~~~~~~~~~~~~~~~~~
5 errors generated.
vim +1531 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1525
1526 static int axienet_pcs_config(struct phylink_config *pcs, unsigned int mode,
1527 phy_interface_t interface,
1528 const unsigned long *advertising,
1529 bool permit_pause_to_mac)
1530 {
> 1531 struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
1532 struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
1533 int ret;
1534
1535 ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr,
1536 XLNX_MII_STD_SELECT_REG,
1537 iface == PHY_INTERFACE_MODE_SGMII ?
1538 XLNX_MII_STD_SELECT_SGMII : 0);
1539 if (ret < 0) {
1540 netdev_warn(ndev, "Failed to switch PHY interface: %d\n",
1541 ret);
1542 return ret;
1543 }
1544
1545 ret = phylink_mii_c22_pcs_config(pcs_phy, mode, interface, advertising);
1546 if (ret < 0)
1547 netdev_warn(ndev, "Failed to configure PCS: %d\n", ret);
1548
1549 return ret;
1550 }
1551
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-arm-kernel@lists.infradead.org
Subject: [arm:zii 147/186] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *'
Date: Mon, 13 Dec 2021 12:55:30 +0800 [thread overview]
Message-ID: <202112131233.tkpcN3nU-lkp@intel.com> (raw)
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: bc8489278c9545054f74b2226d3e2c09ec4e05fe
commit: 7123048813642c4842fcf8e6f4ce6315926cc164 [147/186] net: axienet: convert to phylink_pcs
config: riscv-randconfig-c006-20211212 (https://download.01.org/0day-ci/archive/20211213/202112131233.tkpcN3nU-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 7123048813642c4842fcf8e6f4ce6315926cc164
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/ethernet/xilinx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1523:33: error: use of undeclared identifier 'lp'
phylink_mii_c22_pcs_an_restart(lp->pcs_phy);
^
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1532:53: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1537:8: error: use of undeclared identifier 'iface'
iface == PHY_INTERFACE_MODE_SGMII ?
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1554:16: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') with an expression of type 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') [-Werror,-Wincompatible-function-pointer-types]
.pcs_config = axienet_pcs_config,
^~~~~~~~~~~~~~~~~~
5 errors generated.
vim +1531 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1525
1526 static int axienet_pcs_config(struct phylink_config *pcs, unsigned int mode,
1527 phy_interface_t interface,
1528 const unsigned long *advertising,
1529 bool permit_pause_to_mac)
1530 {
> 1531 struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
1532 struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
1533 int ret;
1534
1535 ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr,
1536 XLNX_MII_STD_SELECT_REG,
1537 iface == PHY_INTERFACE_MODE_SGMII ?
1538 XLNX_MII_STD_SELECT_SGMII : 0);
1539 if (ret < 0) {
1540 netdev_warn(ndev, "Failed to switch PHY interface: %d\n",
1541 ret);
1542 return ret;
1543 }
1544
1545 ret = phylink_mii_c22_pcs_config(pcs_phy, mode, interface, advertising);
1546 if (ret < 0)
1547 netdev_warn(ndev, "Failed to configure PCS: %d\n", ret);
1548
1549 return ret;
1550 }
1551
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arm:zii 147/186] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *'
Date: Mon, 13 Dec 2021 12:55:30 +0800 [thread overview]
Message-ID: <202112131233.tkpcN3nU-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4796 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: bc8489278c9545054f74b2226d3e2c09ec4e05fe
commit: 7123048813642c4842fcf8e6f4ce6315926cc164 [147/186] net: axienet: convert to phylink_pcs
config: riscv-randconfig-c006-20211212 (https://download.01.org/0day-ci/archive/20211213/202112131233.tkpcN3nU-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 7123048813642c4842fcf8e6f4ce6315926cc164
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/ethernet/xilinx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1523:33: error: use of undeclared identifier 'lp'
phylink_mii_c22_pcs_an_restart(lp->pcs_phy);
^
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1532:53: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' [-Werror,-Wincompatible-pointer-types]
struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: passing argument to parameter 'pcs' here
static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1537:8: error: use of undeclared identifier 'iface'
iface == PHY_INTERFACE_MODE_SGMII ?
^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1554:16: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') with an expression of type 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, bool)' (aka 'int (struct phylink_config *, unsigned int, phy_interface_t, const unsigned long *, _Bool)') [-Werror,-Wincompatible-function-pointer-types]
.pcs_config = axienet_pcs_config,
^~~~~~~~~~~~~~~~~~
5 errors generated.
vim +1531 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1525
1526 static int axienet_pcs_config(struct phylink_config *pcs, unsigned int mode,
1527 phy_interface_t interface,
1528 const unsigned long *advertising,
1529 bool permit_pause_to_mac)
1530 {
> 1531 struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
1532 struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
1533 int ret;
1534
1535 ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr,
1536 XLNX_MII_STD_SELECT_REG,
1537 iface == PHY_INTERFACE_MODE_SGMII ?
1538 XLNX_MII_STD_SELECT_SGMII : 0);
1539 if (ret < 0) {
1540 netdev_warn(ndev, "Failed to switch PHY interface: %d\n",
1541 ret);
1542 return ret;
1543 }
1544
1545 ret = phylink_mii_c22_pcs_config(pcs_phy, mode, interface, advertising);
1546 if (ret < 0)
1547 netdev_warn(ndev, "Failed to configure PCS: %d\n", ret);
1548
1549 return ret;
1550 }
1551
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2021-12-13 4:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 4:55 kernel test robot [this message]
2021-12-13 4:55 ` [arm:zii 147/186] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:49: error: incompatible pointer types passing 'struct phylink_config *' to parameter of type 'struct phylink_pcs *' kernel test robot
2021-12-13 4:55 ` 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=202112131233.tkpcN3nU-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=rmk+kernel@armlinux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.