* [asoc:topic/tlv320aic31xx 10/13] sound/soc/codecs/tlv320aic31xx.c:1025:4: error: implicit declaration of function 'gpiod_set_value'
@ 2017-12-02 7:49 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-02 7:49 UTC (permalink / raw)
To: Andrew F. Davis; +Cc: alsa-devel, Mark Brown, kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-02 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02 7:49 [asoc:topic/tlv320aic31xx 10/13] sound/soc/codecs/tlv320aic31xx.c:1025:4: error: implicit declaration of function 'gpiod_set_value' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox