From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [rmk-arm:zii 84/107] drivers/net/dsa/ocelot/felix_vsc9959.c:964:13: error: 'state' undeclared; did you mean 'statx'?
Date: Wed, 22 Jun 2022 13:25:02 +0800 [thread overview]
Message-ID: <202206221327.UPS1BcWt-lkp@intel.com> (raw)
tree: git://git.armlinux.org.uk/~rmk/linux-arm zii
head: aedc75cf78fca1c8b7052c5d59981354f47e2e48
commit: 7d384dc3e28afd432b6ce219a699c0f02003e899 [84/107] net: dsa: ocelot: use phylink_validate_mask_caps()
config: alpha-randconfig-r022-20220622 (https://download.01.org/0day-ci/archive/20220622/202206221327.UPS1BcWt-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.3.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 7d384dc3e28afd432b6ce219a699c0f02003e899
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/dsa/ocelot/
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/dsa/ocelot/felix_vsc9959.c: In function 'vsc9959_phylink_caps':
>> drivers/net/dsa/ocelot/felix_vsc9959.c:964:13: error: 'state' undeclared (first use in this function); did you mean 'statx'?
964 | if (state->interface == PHY_INTERFACE_MODE_INTERNAL ||
| ^~~~~
| statx
drivers/net/dsa/ocelot/felix_vsc9959.c:964:13: note: each undeclared identifier is reported only once for each function it appears in
vim +964 drivers/net/dsa/ocelot/felix_vsc9959.c
56051948773eeb Vladimir Oltean 2019-11-14 958
7d384dc3e28afd Russell King (Oracle 2022-06-18 959) static unsigned long vsc9959_phylink_caps(phy_interface_t interface)
375e1314292194 Vladimir Oltean 2020-07-13 960 {
7d384dc3e28afd Russell King (Oracle 2022-06-18 961) unsigned long caps = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
7d384dc3e28afd Russell King (Oracle 2022-06-18 962) MAC_10 | MAC_100 | MAC_1000;
375e1314292194 Vladimir Oltean 2020-07-13 963
375e1314292194 Vladimir Oltean 2020-07-13 @964 if (state->interface == PHY_INTERFACE_MODE_INTERNAL ||
375e1314292194 Vladimir Oltean 2020-07-13 965 state->interface == PHY_INTERFACE_MODE_2500BASEX ||
7d384dc3e28afd Russell King (Oracle 2022-06-18 966) state->interface == PHY_INTERFACE_MODE_USXGMII)
7d384dc3e28afd Russell King (Oracle 2022-06-18 967) caps |= MAC_2500FD;
375e1314292194 Vladimir Oltean 2020-07-13 968
7d384dc3e28afd Russell King (Oracle 2022-06-18 969) return caps;
375e1314292194 Vladimir Oltean 2020-07-13 970 }
375e1314292194 Vladimir Oltean 2020-07-13 971
:::::: The code at line 964 was first introduced by commit
:::::: 375e131429219486e581df8bd11b0dff87f0895a net: dsa: felix: move probing to felix_vsc9959.c
:::::: TO: Vladimir Oltean <vladimir.oltean@nxp.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-22 5:25 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=202206221327.UPS1BcWt-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®