lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111130053.s2MS0xVA-lkp@intel.com>
Date:   Sat, 13 Nov 2021 00:51:56 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.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

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (35220 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ