All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-sof-driver:pr/1141 2/46] sound/soc/codecs/rt1308-sdw.c:663:28: error: implicit declaration of function 'to_sdw_slave_device'; did you mean 'sdw_slave_modalias'?
@ 2020-01-10  0:33 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10  0:33 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/thesofproject/linux pr/1141
head:   a6aaadd77f49b46ba9781fcaf805aa64fd95aab1
commit: 28c3c6d31f6149d03e7448237ee48e966c221c2e [2/46] ASoC: codecs: rt1308: add SoundWire support
config: x86_64-sof-customedconfig-soundwire-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout 28c3c6d31f6149d03e7448237ee48e966c221c2e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All error/warnings (new ones prefixed by >>):

   sound/soc/codecs/rt1308-sdw.c: In function 'rt1308_dev_resume':
>> sound/soc/codecs/rt1308-sdw.c:663:28: error: implicit declaration of function 'to_sdw_slave_device'; did you mean 'sdw_slave_modalias'? [-Werror=implicit-function-declaration]
     struct sdw_slave *slave = to_sdw_slave_device(dev);
                               ^~~~~~~~~~~~~~~~~~~
                               sdw_slave_modalias
>> sound/soc/codecs/rt1308-sdw.c:663:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors

vim +663 sound/soc/codecs/rt1308-sdw.c

   660	
   661	static int rt1308_dev_resume(struct device *dev)
   662	{
 > 663		struct sdw_slave *slave = to_sdw_slave_device(dev);
   664		struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev);
   665		unsigned long time;
   666	
   667		if (!rt1308->hw_init)
   668			return 0;
   669	
   670		time = wait_for_completion_timeout(&slave->enumeration_complete,
   671						   msecs_to_jiffies(RT1308_PROBE_TIMEOUT));
   672		if (!time) {
   673			dev_err(&slave->dev, "Enumeration not complete, timed out\n");
   674			return -ETIMEDOUT;
   675		}
   676	
   677		regcache_cache_only(rt1308->regmap, false);
   678		regcache_sync_region(rt1308->regmap, 0xc000, 0xcfff);
   679	
   680		return 0;
   681	}
   682	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

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

only message in thread, other threads:[~2020-01-10  0:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10  0:33 [linux-sof-driver:pr/1141 2/46] sound/soc/codecs/rt1308-sdw.c:663:28: error: implicit declaration of function 'to_sdw_slave_device'; did you mean 'sdw_slave_modalias'? kbuild 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.