From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C590E25785D for ; Sun, 14 Dec 2025 19:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765739084; cv=none; b=ewJJblVKST6EOCd/pUHwXu9af3VxKF1X3nmgAHBE/CKuyfxbXSH1G1qHAqBFckgieP+dX25LN6MrXu0KQf3RIgIrCYEA1MYKC34iDOuVA4rDRnZU6YhLOcxlMv4UaeFIyzT+yuXGCkZQpiPbUfI7gTlTencQfHUgDwTSJ4SZk5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765739084; c=relaxed/simple; bh=7Ex65dqAzhJ8er9U+UO5KqTex4a1fmp8voVapUu16WQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=kwEZzzTUM4neR89YzHS/WdwLGcYdI+K8J+uh+NiHX7T7/YhUeatQB/K5+BDGl3rQXj/MUC1ryNelhtXZboR9d9LyShRCX+9qwV7sq8MSvaPiJOXPDXjhvqzkoi9AKKMoaOcZBcan1pSfbAn9/3cJHVeaY32AFMhyWzvGdVzJQJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TtUm6OnF; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TtUm6OnF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1765739083; x=1797275083; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=7Ex65dqAzhJ8er9U+UO5KqTex4a1fmp8voVapUu16WQ=; b=TtUm6OnFyVdwBQJIieGzOJ8CuMACI15M+nQLFez6a2Yrt8MTrdp2p6FI k4HhYqQ/1lP1KB5zJiPknlw7GxSQwAgd9SeGHbu7WhdQug3K2hhSBmQsg eb8urJpbC1zGaNKP4upcNRrAkDFnIAgf/51opOC/sOIsf7zP9ABdWErT7 gjEPQ61wzg+bS1A1S5VW85UudZi2TALltmWTeWXKbINP3SIBtLoE31lIG Fw/P+cucKYgn1wyiyf3tuA4ohIsshvLs6GCI6MPHKFuo9K6KutLEegF5e QQnsy0CZ0kwPrWcUdXEgJL42jGp9rgOYsau6f2HVm96vREZl3IySuzj+Z w==; X-CSE-ConnectionGUID: kufYjEoWRp2FjYd6MSERpw== X-CSE-MsgGUID: 7MNwhAzsQL2d7Yuf110Tbw== X-IronPort-AV: E=McAfee;i="6800,10657,11642"; a="67531371" X-IronPort-AV: E=Sophos;i="6.21,148,1763452800"; d="scan'208";a="67531371" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2025 11:04:41 -0800 X-CSE-ConnectionGUID: QrUEoBBNSJyV/TU9bYRYaQ== X-CSE-MsgGUID: AklUr3xyTu6uN1MkngHwoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,148,1763452800"; d="scan'208";a="202467742" Received: from lkp-server01.sh.intel.com (HELO d335e3c6db51) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 14 Dec 2025 11:04:39 -0800 Received: from kbuild by d335e3c6db51 with local (Exim 4.98.2) (envelope-from ) id 1vUrOW-000000009I7-3FvH; Sun, 14 Dec 2025 19:04:36 +0000 Date: Mon, 15 Dec 2025 03:04:12 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\x80' Message-ID: <202512150318.qeiM10eb-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: Oleksij Rempel CC: Jakub Kicinski CC: "Russell King (Oracle)" tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 commit: e110bc82589752909e283ba5cbc160e0ab56c085 net: usb: lan78xx: Convert to PHYLINK for improved PHY and MAC management date: 6 months ago :::::: branch date: 15 hours ago :::::: commit date: 6 months ago config: x86_64-randconfig-161-20251212 (https://download.01.org/0day-ci/archive/20251215/202512150318.qeiM10eb-lkp@intel.com/config) compiler: gcc-12 (Debian 12.4.0-5) 12.4.0 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 | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202512150318.qeiM10eb-lkp@intel.com/ New smatch warnings: drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\x80' Old smatch warnings: drivers/net/usb/lan78xx.c:2625 lan78xx_set_fixed_link() warn: format string contains non-ascii character '\xe2' 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 Woojung.Huh@microchip.com 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 :::::: CC: David S. Miller -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki