[alsa-devel] [asoc:topic/tlv320aic31xx 10/13] sound/soc/codecs/tlv320aic31xx.c:1025:4: error: implicit declaration of function 'gpiod_set_value'
kbuild test robot
fengguang.wu at intel.com
Sat Dec 2 08:49:24 CET 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 24896 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20171202/379533df/attachment-0001.bin>
More information about the Alsa-devel
mailing list