Hi Calvin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Calvin-Johnson/ACPI-support-for-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
29a720c1042f469c8fea317cb5e7f496b116e07d
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
1d4c87335d5236ea1f35937e1014980ba961ae34)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> drivers/net/phy/mdio_bus.c:745:10: warning: enumeration value
'MDIOBUS_NO_CAP' not handled in switch [-Wswitch]
switch
(bus->probe_capabilities) {
^
1 warning generated.
vim +/MDIOBUS_NO_CAP +745 drivers/net/phy/mdio_bus.c
727
728 /**
729 * mdiobus_scan - scan a bus for MDIO devices.
730 * @bus: mii_bus to scan
731 * @addr: address on bus to scan
732 *
733 * This function scans the MDIO bus, looking for devices which can be
734 * identified using a vendor/product ID in registers 2 and 3. Not all
735 * MDIO devices have such registers, but PHY devices typically
736 * do. Hence this function assumes anything found is a PHY, or can be
737 * treated as a PHY. Other MDIO devices, such as switches, will
738 * probably not be found during the scan.
739 */
740 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr)
741 {
742 struct phy_device *phydev = ERR_PTR(-ENODEV);
743 int err;
744
745 switch (bus->probe_capabilities) {
746 case
MDIOBUS_C22:
747 phydev = get_phy_device(bus, addr, false);
748 break;
749 case MDIOBUS_C45:
750 phydev = get_phy_device(bus, addr, true);
751 break;
752 case MDIOBUS_C22_C45:
753 phydev = get_phy_device(bus, addr, false);
754 if (IS_ERR(phydev))
755 phydev = get_phy_device(bus, addr, true);
756 break;
757 }
758
759 if (IS_ERR(phydev))
760 return phydev;
761
762 /*
763 * For DT, see if the auto-probed phy has a correspoding child
764 * in the bus node, and set the of_node pointer in this case.
765 */
766 of_mdiobus_link_mdiodev(bus, &phydev->mdio);
767
768 err = phy_device_register(phydev);
769 if (err) {
770 phy_device_free(phydev);
771 return ERR_PTR(-ENODEV);
772 }
773
774 return phydev;
775 }
776 EXPORT_SYMBOL(mdiobus_scan);
777
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org