From: Vinod Koul <vinod.koul@intel.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>, Jeeja KP <jeeja.kp@intel.com>
Subject: Re: sound/soc/codecs/rl6347a.c:66:8: error: implicit declaration of function 'i2c_master_send'
Date: Tue, 17 Nov 2015 22:17:30 +0530 [thread overview]
Message-ID: <20151117164730.GO25173@localhost> (raw)
In-Reply-To: <201511171925.DG2z7kcb%fengguang.wu@intel.com>
On Tue, Nov 17, 2015 at 07:07:28PM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 8005c49d9aea74d382f474ce11afbbc7d7130bec
> commit: 624729fd51871bfbddb647764f180126789a29ee ASoC: Intel: Skylake - Add Skylake RT286 I2S machine driver
> date: 4 weeks ago
> config: x86_64-randconfig-s5-11171804 (attached as .config)
> reproduce:
> git checkout 624729fd51871bfbddb647764f180126789a29ee
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All error/warnings (new ones prefixed by >>):
>
> sound/soc/codecs/rl6347a.c: In function 'rl6347a_hw_write':
> >> sound/soc/codecs/rl6347a.c:66:8: error: implicit declaration of function 'i2c_master_send' [-Werror=implicit-function-declaration]
> ret = i2c_master_send(client, data, 4);
> ^
> sound/soc/codecs/rl6347a.c: In function 'rl6347a_hw_read':
> >> sound/soc/codecs/rl6347a.c:114:8: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration]
> ret = i2c_transfer(client->adapter, xfer, 2);
> ^
> cc1: some warnings being treated as errors
> --
> >> sound/soc/codecs/rt286.c:1269:1: warning: data definition has no type or storage class
> module_i2c_driver(rt286_i2c_driver);
> ^
> >> sound/soc/codecs/rt286.c:1269:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
> >> sound/soc/codecs/rt286.c:1269:1: warning: parameter names (without types) in function declaration
> >> sound/soc/codecs/rt286.c:1259:26: warning: 'rt286_i2c_driver' defined but not used [-Wunused-variable]
> static struct i2c_driver rt286_i2c_driver = {
> ^
> cc1: some warnings being treated as errors
Thanks for reporting this, I was able to verify and looks like the config
does not have I2C selected, so the driver does not find this symbol.
Also I noticed, i2c core defines i2c_master_send() APIs as extern, so not
having I2C causes failure.
I did try adding depends on I2C on rl6347a but that does not help as rt286
starts not compiling which incidently depends on I2C but was selected by SKL
machine
So finalled added depends on SKL machine, will send that out
Thanks
--
~Vinod
prev parent reply other threads:[~2015-11-17 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 11:07 sound/soc/codecs/rl6347a.c:66:8: error: implicit declaration of function 'i2c_master_send' kbuild test robot
2015-11-17 16:47 ` Vinod Koul [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151117164730.GO25173@localhost \
--to=vinod.koul@intel.com \
--cc=broonie@kernel.org \
--cc=fengguang.wu@intel.com \
--cc=jeeja.kp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox