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 111/186] drivers/net/ethernet/cadence/macb_main.c:736:10: error: returning 'struct phylink_pcs' from a function with incompatible result type 'struct phylink_pcs *'; take the address with &
Date: Wed, 15 Dec 2021 12:57:38 +0800 [thread overview]
Message-ID: <202112151224.UQXJMgLg-lkp@intel.com> (raw)
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: d3ebd79d7fb6476e2409c147e4dcc304733f7ae6
commit: 4a3afb218aacb819703cf3336e5c7c83b41b10fb [111/186] net: macb: use .mac_select_pcs() interface
config: x86_64-randconfig-r016-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151224.UQXJMgLg-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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 arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 4a3afb218aacb819703cf3336e5c7c83b41b10fb
# 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=x86_64 SHELL=/bin/bash
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/cadence/macb_main.c:736:10: error: returning 'struct phylink_pcs' from a function with incompatible result type 'struct phylink_pcs *'; take the address with &
return bp->phylink_sgmii_pcs;
^~~~~~~~~~~~~~~~~~~~~
&
1 error generated.
vim +736 drivers/net/ethernet/cadence/macb_main.c
726
727 static struct phylink_pcs *macb_mac_select_pcs(struct phylink_config *config,
728 phy_interface_t interface)
729 {
730 struct net_device *ndev = to_net_dev(config->dev);
731 struct macb *bp = netdev_priv(ndev);
732
733 if (interface == PHY_INTERFACE_MODE_10GBASER)
734 return &bp->phylink_usx_pcs;
735 else if (interface == PHY_INTERFACE_MODE_SGMII)
> 736 return bp->phylink_sgmii_pcs;
737 else
738 return NULL;
739 }
740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-15 4:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112151224.UQXJMgLg-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox