oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [intel-lts:5.15/linux 18854/23027] drivers/counter/intel-qep.c:529:13: warning: variable 'cgsr_reg' set but not used
@ 2023-03-09 14:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-09 14:28 UTC (permalink / raw)
  To: Lakshmi Sowjanya D; +Cc: oe-kbuild-all, renjiaox

Hi Lakshmi,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.15/linux
head:   2533aa36ba52e96057d68a4ab377a6293b91c1fc
commit: 3f8cef0c2b42d7b55a58fb9469ba99159f20c74f [18854/23027] counter: Enable D0i3 flow for PSE QEP
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230309/202303092225.XIsBEKqr-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.0
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
        # https://github.com/intel/linux-intel-lts/commit/3f8cef0c2b42d7b55a58fb9469ba99159f20c74f
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.15/linux
        git checkout 3f8cef0c2b42d7b55a58fb9469ba99159f20c74f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/counter/ drivers/gpu/drm/bridge/imx/ drivers/gpu/drm/mcde/ drivers/media/i2c/ drivers/pwm/ drivers/spi/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303092225.XIsBEKqr-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/counter/intel-qep.c: In function 'intel_qep_runtime_suspend':
>> drivers/counter/intel-qep.c:529:13: warning: variable 'cgsr_reg' set but not used [-Wunused-but-set-variable]
     529 |         u32 cgsr_reg;
         |             ^~~~~~~~


vim +/cgsr_reg +529 drivers/counter/intel-qep.c

   521	
   522	#ifdef CONFIG_PM
   523	static int intel_qep_runtime_suspend(struct device *dev)
   524	{
   525		struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
   526		struct intel_qep *qep = pci_get_drvdata(pdev);
   527		unsigned long j0, j1, delay;
   528		u32 d0i3c_reg;
 > 529		u32 cgsr_reg;
   530	
   531		delay = msecs_to_jiffies(100);
   532		j0 = jiffies;
   533		j1 = j0 + delay;
   534	
   535		cgsr_reg = intel_qep_readl(qep, INTEL_QEP_CGSR);
   536		intel_qep_writel(qep, INTEL_QEP_CGSR, INTEL_QEP_CGSR_CG);
   537	
   538		d0i3c_reg = intel_qep_readl(qep, INTEL_QEP_D0I3C);
   539	
   540		if (d0i3c_reg & INTEL_QEP_D0I3_CIP) {
   541			dev_info(dev, "%s d0i3c CIP detected", __func__);
   542		} else {
   543			intel_qep_writel(qep, INTEL_QEP_D0I3C, INTEL_QEP_D0I3_EN);
   544			d0i3c_reg = intel_qep_readl(qep, INTEL_QEP_D0I3C);
   545		}
   546	
   547		while (time_before(jiffies, j1)) {
   548			d0i3c_reg = intel_qep_readl(qep, INTEL_QEP_D0I3C);
   549			if (!(d0i3c_reg & INTEL_QEP_D0I3_CIP))
   550				break;
   551		}
   552	
   553		if (d0i3c_reg & INTEL_QEP_D0I3_CIP)
   554			dev_info(dev, "%s: timeout waiting CIP to be cleared", __func__);
   555	
   556		return 0;
   557	}
   558	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-09 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09 14:28 [intel-lts:5.15/linux 18854/23027] drivers/counter/intel-qep.c:529:13: warning: variable 'cgsr_reg' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).