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-kernel@vger.kernel.org
Subject: [rmk-arm:zii 42/102] drivers/net/phy/phylink.c:322:10: error: enumeration value 'PHY_INTERFACE_MODE_MOCA' not handled in switch
Date: Sat, 13 Nov 2021 00:51:56 +0800 [thread overview]
Message-ID: <202111130053.s2MS0xVA-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4362 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm zii
head: 2f38af1897a020adf10ab01d8dc20ea8388b564d
commit: 2dbb449e3e2fdf89a2495c29655bde644d42e59b [42/102] net: phylink: add generic validate implementation
config: arm-buildonly-randconfig-r002-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm zii
git checkout 2dbb449e3e2fdf89a2495c29655bde644d42e59b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
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/phy/phylink.c:322:10: error: enumeration value 'PHY_INTERFACE_MODE_MOCA' not handled in switch [-Werror,-Wswitch]
switch (interface) {
^~~~~~~~~
1 error generated.
vim +/PHY_INTERFACE_MODE_MOCA +322 drivers/net/phy/phylink.c
306
307 /**
308 * phylink_get_linkmodes() - get acceptable link modes
309 * @linkmodes: ethtool linkmode mask (must be already initialised)
310 * @interface: phy interface mode defined by &typedef phy_interface_t
311 * @mac_capabilities: bitmask of MAC capabilities
312 *
313 * Set all possible pause, speed and duplex linkmodes in @linkmodes that
314 * are supported by the @interface mode and @mac_capabilities. @linkmodes
315 * must have been initialised previously.
316 */
317 void phylink_get_linkmodes(unsigned long *linkmodes, phy_interface_t interface,
318 unsigned long mac_capabilities)
319 {
320 unsigned long caps = MAC_SYM_PAUSE | MAC_ASYM_PAUSE;
321
> 322 switch (interface) {
323 case PHY_INTERFACE_MODE_USXGMII:
324 caps |= MAC_10000FD | MAC_5000FD | MAC_2500FD;
325 fallthrough;
326
327 case PHY_INTERFACE_MODE_RGMII_TXID:
328 case PHY_INTERFACE_MODE_RGMII_RXID:
329 case PHY_INTERFACE_MODE_RGMII_ID:
330 case PHY_INTERFACE_MODE_RGMII:
331 case PHY_INTERFACE_MODE_QSGMII:
332 case PHY_INTERFACE_MODE_SGMII:
333 case PHY_INTERFACE_MODE_GMII:
334 caps |= MAC_1000HD | MAC_1000FD;
335 fallthrough;
336
337 case PHY_INTERFACE_MODE_REVRMII:
338 case PHY_INTERFACE_MODE_RMII:
339 case PHY_INTERFACE_MODE_REVMII:
340 case PHY_INTERFACE_MODE_MII:
341 caps |= MAC_10HD | MAC_10FD;
342 fallthrough;
343
344 case PHY_INTERFACE_MODE_100BASEX:
345 caps |= MAC_100HD | MAC_100FD;
346 break;
347
348 case PHY_INTERFACE_MODE_TBI:
349 case PHY_INTERFACE_MODE_RTBI:
350 case PHY_INTERFACE_MODE_1000BASEX:
351 caps |= MAC_1000HD;
352 fallthrough;
353 case PHY_INTERFACE_MODE_TRGMII:
354 caps |= MAC_1000FD;
355 break;
356
357 case PHY_INTERFACE_MODE_2500BASEX:
358 caps |= MAC_2500FD;
359 break;
360
361 case PHY_INTERFACE_MODE_5GBASER:
362 caps |= MAC_5000FD;
363 break;
364
365 case PHY_INTERFACE_MODE_XGMII:
366 case PHY_INTERFACE_MODE_RXAUI:
367 case PHY_INTERFACE_MODE_XAUI:
368 case PHY_INTERFACE_MODE_10GBASER:
369 case PHY_INTERFACE_MODE_10GKR:
370 caps |= MAC_10000FD;
371 break;
372
373 case PHY_INTERFACE_MODE_25GBASER:
374 caps |= MAC_25000FD;
375 break;
376
377 case PHY_INTERFACE_MODE_XLGMII:
378 caps |= MAC_40000FD;
379 break;
380
381 case PHY_INTERFACE_MODE_INTERNAL:
382 caps |= ~0;
383 break;
384
385 case PHY_INTERFACE_MODE_NA:
386 case PHY_INTERFACE_MODE_MAX:
387 case PHY_INTERFACE_MODE_SMII:
388 break;
389 }
390
391 phylink_caps_to_linkmodes(linkmodes, caps & mac_capabilities);
392 }
393 EXPORT_SYMBOL_GPL(phylink_get_linkmodes);
394
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35220 bytes --]
reply other threads:[~2021-11-12 16:53 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=202111130053.s2MS0xVA-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®