From: kbuild test robot <fengguang.wu@intel.com>
To: "Andrew F. Davis" <afd@ti.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
kbuild-all@01.org
Subject: [asoc:topic/tlv320aic31xx 10/13] sound/soc/codecs/tlv320aic31xx.c:1025:4: error: implicit declaration of function 'gpiod_set_value'
Date: Sat, 2 Dec 2017 15:49:24 +0800 [thread overview]
Message-ID: <201712021516.OrOMhpas%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/tlv320aic31xx
head: dcb407b257af06fa58b0544ec01ec9e0d3927e02
commit: b6b247cd5e37560e410c88b108e7408dafe60c15 [10/13] ASoC: tlv320aic31xx: Switch GPIO handling to use gpiod_* API
config: x86_64-randconfig-r0-12021500 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout b6b247cd5e37560e410c88b108e7408dafe60c15
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
sound/soc/codecs/tlv320aic31xx.c: In function 'aic31xx_regulator_event':
>> sound/soc/codecs/tlv320aic31xx.c:1025:4: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]
gpiod_set_value(aic31xx->gpio_reset, 1);
^~~~~~~~~~~~~~~
sound/soc/codecs/tlv320aic31xx.c: In function 'aic31xx_i2c_probe':
>> sound/soc/codecs/tlv320aic31xx.c:1338:24: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration]
aic31xx->gpio_reset = devm_gpiod_get_optional(aic31xx->dev, "reset",
^~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/codecs/tlv320aic31xx.c:1339:13: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)
GPIOD_OUT_LOW);
^~~~~~~~~~~~~
sound/soc/codecs/tlv320aic31xx.c:1339:13: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/gpiod_set_value +1025 sound/soc/codecs/tlv320aic31xx.c
1011
1012 static int aic31xx_regulator_event(struct notifier_block *nb,
1013 unsigned long event, void *data)
1014 {
1015 struct aic31xx_disable_nb *disable_nb =
1016 container_of(nb, struct aic31xx_disable_nb, nb);
1017 struct aic31xx_priv *aic31xx = disable_nb->aic31xx;
1018
1019 if (event & REGULATOR_EVENT_DISABLE) {
1020 /*
1021 * Put codec to reset and as at least one of the
1022 * supplies was disabled.
1023 */
1024 if (aic31xx->gpio_reset)
> 1025 gpiod_set_value(aic31xx->gpio_reset, 1);
1026
1027 regcache_mark_dirty(aic31xx->regmap);
1028 dev_dbg(aic31xx->dev, "## %s: DISABLE received\n", __func__);
1029 }
1030
1031 return 0;
1032 }
1033
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24896 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
reply other threads:[~2017-12-02 7:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201712021516.OrOMhpas%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=afd@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kbuild-all@01.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