[alsa-devel] [sound:topic/hda-core-intel 1/7] sound/hda/ext/hdac_ext_controller.c:283:3: error: 'bus' undeclared; did you mean 'ebus'?
kbuild test robot
lkp at intel.com
Tue Jun 26 21:19:38 CEST 2018
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/hda-core-intel
head: 21b51c0d69680da7cdf4c83d274edef2fe4f27bc
commit: 7b4986f0c30484370183d935821b826c855c28bf [1/7] ALSA: hdac: ext: add wait for codec to respond after link reset
config: x86_64-randconfig-x008-201825 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 7b4986f0c30484370183d935821b826c855c28bf
# save the attached .config to linux build tree
make ARCH=x86_64
Note: the sound/topic/hda-core-intel HEAD 21b51c0d69680da7cdf4c83d274edef2fe4f27bc builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
sound/hda/ext/hdac_ext_controller.c: In function 'snd_hdac_ext_bus_link_get':
>> sound/hda/ext/hdac_ext_controller.c:283:3: error: 'bus' undeclared (first use in this function); did you mean 'ebus'?
bus->codec_mask = snd_hdac_chip_readw(bus, STATESTS);
^~~
ebus
sound/hda/ext/hdac_ext_controller.c:283:3: note: each undeclared identifier is reported only once for each function it appears in
vim +283 sound/hda/ext/hdac_ext_controller.c
258
259 int snd_hdac_ext_bus_link_get(struct hdac_ext_bus *ebus,
260 struct hdac_ext_link *link)
261 {
262 int ret = 0;
263
264 mutex_lock(&ebus->lock);
265
266 /*
267 * if we move from 0 to 1, count will be 1 so power up this link
268 * as well, also check the dma status and trigger that
269 */
270 if (++link->ref_count == 1) {
271 if (!ebus->cmd_dma_state) {
272 snd_hdac_bus_init_cmd_io(&ebus->bus);
273 ebus->cmd_dma_state = true;
274 }
275
276 ret = snd_hdac_ext_bus_link_power_up(link);
277
278 /*
279 * wait for 521usec for codec to report status
280 * HDA spec section 4.3 - Codec Discovery
281 */
282 udelay(521);
> 283 bus->codec_mask = snd_hdac_chip_readw(bus, STATESTS);
284 dev_dbg(bus->dev, "codec_mask = 0x%lx\n", bus->codec_mask);
285 snd_hdac_chip_writew(bus, STATESTS, bus->codec_mask);
286 }
287
288 mutex_unlock(&ebus->lock);
289 return ret;
290 }
291 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_get);
292
---
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: 34969 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180627/d78b4072/attachment-0001.bin>
More information about the Alsa-devel
mailing list