drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\xe2'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Oleksij Rempel <[email protected]> CC: Jakub Kicinski <[email protected]> CC: "Russell King (Oracle)" <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 commit: e110bc82589752909e283ba5cbc160e0ab56c085 net: usb: lan78xx: Convert to PHYLINK for improved PHY and MAC management date: 1 year, 1 month ago :::::: branch date: 2 days ago :::::: commit date: 1 year, 1 month ago config: x86_64-randconfig-161 (https://download.01.org/0day-ci/archive/20260709/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 smatch: v0.5.0-9185-gbcc58b9c If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Fixes: e110bc825897 ("net: usb: lan78xx: Convert to PHYLINK for improved PHY and MAC management") | Reported-by: kernel test robot <[email protected]> | Reported-by: Dan Carpenter <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ New smatch warnings: drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\xe2' Old smatch warnings: drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\x80' drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\x93' drivers/net/usb/lan78xx.c:2656 lan78xx_get_phy() warn: format string contains non-ascii character '\xe2' drivers/net/usb/lan78xx.c:2656 lan78xx_get_phy() warn: format string contains non-ascii character '\x80' drivers/net/usb/lan78xx.c:2656 lan78xx_get_phy() warn: format string contains non-ascii character '\x93' drivers/net/usb/lan78xx.c:2860 lan78xx_phy_init() error: we previously assumed 'phydev' could be null (see line 2848) drivers/net/usb/lan78xx.c:2860 lan78xx_phy_init() warn: 'phydev' can also be NULL drivers/net/usb/lan78xx.c:2862 lan78xx_phy_init() warn: 'phydev' can also be NULL drivers/net/usb/lan78xx.c:3142 lan78xx_init_ltm() warn: missing unwind goto? vim +2625 drivers/net/usb/lan78xx.c e110bc82589752 Oleksij Rempel 2025-06-18 2607 d39f339d260373 Oleksij Rempel 2025-05-05 2608 /** e110bc82589752 Oleksij Rempel 2025-06-18 2609 * lan78xx_set_fixed_link() - Set fixed link configuration for LAN7801 d39f339d260373 Oleksij Rempel 2025-05-05 2610 * @dev: LAN78xx device d39f339d260373 Oleksij Rempel 2025-05-05 2611 * e110bc82589752 Oleksij Rempel 2025-06-18 2612 * Use fixed link configuration with 1 Gbps full duplex. This is used in special e110bc82589752 Oleksij Rempel 2025-06-18 2613 * cases like EVB-KSZ9897-1, where LAN7801 acts as a USB-to-Ethernet interface e110bc82589752 Oleksij Rempel 2025-06-18 2614 * to a switch without a visible PHY. d39f339d260373 Oleksij Rempel 2025-05-05 2615 * d39f339d260373 Oleksij Rempel 2025-05-05 2616 * Return: pointer to the registered fixed PHY, or ERR_PTR() on error. d39f339d260373 Oleksij Rempel 2025-05-05 2617 */ e110bc82589752 Oleksij Rempel 2025-06-18 2618 static int lan78xx_set_fixed_link(struct lan78xx_net *dev) 55d7de9de6c30a [email protected] 2015-07-30 2619 { e110bc82589752 Oleksij Rempel 2025-06-18 2620 static const struct phylink_link_state state = { 89b36fb5e53244 Raghuram Chary J 2018-04-28 2621 .speed = SPEED_1000, 89b36fb5e53244 Raghuram Chary J 2018-04-28 2622 .duplex = DUPLEX_FULL, 89b36fb5e53244 Raghuram Chary J 2018-04-28 2623 }; d39f339d260373 Oleksij Rempel 2025-05-05 2624 d39f339d260373 Oleksij Rempel 2025-05-05 @2625 netdev_info(dev->net, e110bc82589752 Oleksij Rempel 2025-06-18 2626 "No PHY found on LAN7801 – using fixed link instead (e.g. EVB-KSZ9897-1)\n"); d39f339d260373 Oleksij Rempel 2025-05-05 2627 e110bc82589752 Oleksij Rempel 2025-06-18 2628 return phylink_set_fixed_link(dev->phylink, &state); d39f339d260373 Oleksij Rempel 2025-05-05 2629 } d39f339d260373 Oleksij Rempel 2025-05-05 2630 :::::: The code at line 2625 was first introduced by commit :::::: d39f339d2603736ff90b0b32d9aea3b954307fd5 net: usb: lan78xx: refactor PHY init to separate detection and MAC configuration :::::: TO: Oleksij Rempel <[email protected]> :::::: CC: David S. Miller <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki