All of lore.kernel.org
 help / color / mirror / Atom feed
* sound/soc/intel/catpt/dsp.c:359:9: sparse: sparse: restricted pci_power_t degrades to integer
@ 2020-10-22  7:25 ` kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-10-22  7:25 UTC (permalink / raw)
  To: Cezary Rojewski; +Cc: kbuild-all, linux-kernel, Mark Brown, Andy Shevchenko

[-- Attachment #1: Type: text/plain, Size: 3572 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f804b3159482eedbb4250b1e9248c308fb63b805
commit: 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1 ASoC: Intel: Select catpt and deprecate haswell
date:   3 weeks ago
config: i386-randconfig-s002-20201022 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
>> sound/soc/intel/catpt/dsp.c:359:9: sparse: sparse: restricted pci_power_t degrades to integer
   sound/soc/intel/catpt/dsp.c:372:9: sparse: sparse: restricted pci_power_t degrades to integer
   sound/soc/intel/catpt/dsp.c:423:9: sparse: sparse: restricted pci_power_t degrades to integer
   sound/soc/intel/catpt/dsp.c:447:9: sparse: sparse: restricted pci_power_t degrades to integer

vim +359 sound/soc/intel/catpt/dsp.c

ba202a7bc3da05 Cezary Rojewski 2020-09-29  343  
ba202a7bc3da05 Cezary Rojewski 2020-09-29  344  int lpt_dsp_power_down(struct catpt_dev *cdev)
ba202a7bc3da05 Cezary Rojewski 2020-09-29  345  {
ba202a7bc3da05 Cezary Rojewski 2020-09-29  346  	catpt_dsp_reset(cdev, true);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  347  
ba202a7bc3da05 Cezary Rojewski 2020-09-29  348  	/* set 24Mhz clock for both SSPs */
ba202a7bc3da05 Cezary Rojewski 2020-09-29  349  	catpt_updatel_shim(cdev, CS1, CATPT_CS_SBCS(0) | CATPT_CS_SBCS(1),
ba202a7bc3da05 Cezary Rojewski 2020-09-29  350  			   CATPT_CS_SBCS(0) | CATPT_CS_SBCS(1));
ba202a7bc3da05 Cezary Rojewski 2020-09-29  351  	catpt_dsp_select_lpclock(cdev, true, false);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  352  
ba202a7bc3da05 Cezary Rojewski 2020-09-29  353  	/* DRAM power gating all */
ba202a7bc3da05 Cezary Rojewski 2020-09-29  354  	catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask,
ba202a7bc3da05 Cezary Rojewski 2020-09-29  355  			      cdev->spec->dram_mask);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  356  	catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask,
ba202a7bc3da05 Cezary Rojewski 2020-09-29  357  			      cdev->spec->iram_mask);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  358  
ba202a7bc3da05 Cezary Rojewski 2020-09-29 @359  	catpt_updatel_pci(cdev, PMCS, PCI_PM_CTRL_STATE_MASK, PCI_D3hot);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  360  	/* give hw time to drop off */
ba202a7bc3da05 Cezary Rojewski 2020-09-29  361  	udelay(50);
ba202a7bc3da05 Cezary Rojewski 2020-09-29  362  
ba202a7bc3da05 Cezary Rojewski 2020-09-29  363  	return 0;
ba202a7bc3da05 Cezary Rojewski 2020-09-29  364  }
ba202a7bc3da05 Cezary Rojewski 2020-09-29  365  

:::::: The code at line 359 was first introduced by commit
:::::: ba202a7bc3da05ca4548c7247f9be769b4e8c9fa ASoC: Intel: catpt: Define DSP operations

:::::: TO: Cezary Rojewski <cezary.rojewski@intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36289 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-22 14:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22  7:25 sound/soc/intel/catpt/dsp.c:359:9: sparse: sparse: restricted pci_power_t degrades to integer kernel test robot
2020-10-22  7:25 ` kernel test robot
2020-10-22 13:52 ` Andy Shevchenko
2020-10-22 13:52   ` Andy Shevchenko
2020-10-22 14:09   ` Bjorn Helgaas
2020-10-22 14:09     ` Bjorn Helgaas
2020-10-22 14:33     ` Rojewski, Cezary
2020-10-22 14:33       ` Rojewski, Cezary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.