All of lore.kernel.org
 help / color / mirror / Atom feed
* [tiwai-sound:for-next 90/101] sound/pci/hda/cs35l41_hda.c:733:5: warning: no previous declaration for 'cs35l41_verify_id'
@ 2023-10-28 17:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-28 17:57 UTC (permalink / raw)
  To: Stefan Binding; +Cc: oe-kbuild-all, alsa-devel, Takashi Iwai

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   a5901f27dcf13203e5b342b7e9439314a775bf32
commit: 881b7bce0c250386680b49b637455d31238a4b30 [90/101] ALSA: hda: cs35l41: Run boot process during resume callbacks
config: i386-buildonly-randconfig-003-20231028 (https://download.01.org/0day-ci/archive/20231029/202310290100.edUObACr-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231029/202310290100.edUObACr-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310290100.edUObACr-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> sound/pci/hda/cs35l41_hda.c:733:5: warning: no previous declaration for 'cs35l41_verify_id' [-Wmissing-declarations]
    int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid)
        ^~~~~~~~~~~~~~~~~


vim +/cs35l41_verify_id +733 sound/pci/hda/cs35l41_hda.c

   732	
 > 733	int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid)
   734	{
   735		unsigned int mtl_revid, chipid;
   736		int ret;
   737	
   738		ret = regmap_read(cs35l41->regmap, CS35L41_DEVID, regid);
   739		if (ret) {
   740			dev_err_probe(cs35l41->dev, ret, "Get Device ID failed\n");
   741			return ret;
   742		}
   743	
   744		ret = regmap_read(cs35l41->regmap, CS35L41_REVID, reg_revid);
   745		if (ret) {
   746			dev_err_probe(cs35l41->dev, ret, "Get Revision ID failed\n");
   747			return ret;
   748		}
   749	
   750		mtl_revid = *reg_revid & CS35L41_MTLREVID_MASK;
   751	
   752		chipid = (mtl_revid % 2) ? CS35L41R_CHIP_ID : CS35L41_CHIP_ID;
   753		if (*regid != chipid) {
   754			dev_err(cs35l41->dev, "CS35L41 Device ID (%X). Expected ID %X\n", *regid, chipid);
   755			return -ENODEV;
   756		}
   757	
   758		return 0;
   759	}
   760	

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

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

only message in thread, other threads:[~2023-10-28 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-28 17:57 [tiwai-sound:for-next 90/101] sound/pci/hda/cs35l41_hda.c:733:5: warning: no previous declaration for 'cs35l41_verify_id' kernel test robot

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.