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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202509191049.t301ozfh-lkp@intel.com>
Date: Fri, 19 Sep 2025 10:14:44 +0800
From: kernel test robot <lkp@...el.com>
To: Wei Fang <wei.fang@....com>, claudiu.manoil@....com,
	vladimir.oltean@....com, xiaoning.wang@....com, yangbo.lu@....com,
	richardcochran@...il.com, andrew+netdev@...n.ch,
	davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
	pabeni@...hat.com, Frank.Li@....com
Cc: oe-kbuild-all@...ts.linux.dev, imx@...ts.linux.dev,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: enetc: use generic interfaces to get
 phc_index for ENETC v1

Hi Wei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Wei-Fang/net-enetc-use-generic-interfaces-to-get-phc_index-for-ENETC-v1/20250918-160739
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250918074454.1742328-1-wei.fang%40nxp.com
patch subject: [PATCH net-next] net: enetc: use generic interfaces to get phc_index for ENETC v1
config: parisc-randconfig-001-20250919 (https://download.01.org/0day-ci/archive/20250919/202509191049.t301ozfh-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250919/202509191049.t301ozfh-lkp@intel.com/reproduce)

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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509191049.t301ozfh-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/freescale/enetc/enetc_ethtool.c: In function 'enetc_get_ts_info':
>> drivers/net/ethernet/freescale/enetc/enetc_ethtool.c:955:14: warning: unused variable 'phc_idx' [-Wunused-variable]
     955 |         int *phc_idx;
         |              ^~~~~~~


vim +/phc_idx +955 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c

f5b9a1cde0a26c Wei Fang     2025-08-29  949  
f5b9a1cde0a26c Wei Fang     2025-08-29  950  static int enetc_get_ts_info(struct net_device *ndev,
f5b9a1cde0a26c Wei Fang     2025-08-29  951  			     struct kernel_ethtool_ts_info *info)
f5b9a1cde0a26c Wei Fang     2025-08-29  952  {
f5b9a1cde0a26c Wei Fang     2025-08-29  953  	struct enetc_ndev_priv *priv = netdev_priv(ndev);
f5b9a1cde0a26c Wei Fang     2025-08-29  954  	struct enetc_si *si = priv->si;
f5b9a1cde0a26c Wei Fang     2025-08-29 @955  	int *phc_idx;
f5b9a1cde0a26c Wei Fang     2025-08-29  956  
f5b9a1cde0a26c Wei Fang     2025-08-29  957  	if (!enetc_ptp_clock_is_enabled(si))
f5b9a1cde0a26c Wei Fang     2025-08-29  958  		goto timestamp_tx_sw;
f5b9a1cde0a26c Wei Fang     2025-08-29  959  
5f3b8f93ed1b53 Wei Fang     2025-09-18  960  	info->phc_index = enetc_get_phc_index(si);
f5b9a1cde0a26c Wei Fang     2025-08-29  961  	if (info->phc_index < 0)
f5b9a1cde0a26c Wei Fang     2025-08-29  962  		goto timestamp_tx_sw;
f5b9a1cde0a26c Wei Fang     2025-08-29  963  
f5b9a1cde0a26c Wei Fang     2025-08-29  964  	enetc_get_ts_generic_info(ndev, info);
f5b9a1cde0a26c Wei Fang     2025-08-29  965  
f5b9a1cde0a26c Wei Fang     2025-08-29  966  	return 0;
f5b9a1cde0a26c Wei Fang     2025-08-29  967  
f5b9a1cde0a26c Wei Fang     2025-08-29  968  timestamp_tx_sw:
f5b9a1cde0a26c Wei Fang     2025-08-29  969  	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
9c699a8f3b273c Martyn Welch 2024-09-12  970  
41514737ecaa60 Y.b. Lu      2019-05-23  971  	return 0;
41514737ecaa60 Y.b. Lu      2019-05-23  972  }
41514737ecaa60 Y.b. Lu      2019-05-23  973  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ