[alsa-devel] [sound:topic/hda-bus-ops-cleanup 2/3] sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'?
kbuild test robot
lkp at intel.com
Fri Aug 9 01:13:40 CEST 2019
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tiwai/sound.git topic/hda-bus-ops-cleanup
head: d4ff1b3917a529bdc75592af6b1504ad6c4029f7
commit: 19abfefd4c7604993d1c31e098a3f48bdafe334d [2/3] ALSA: hda: Direct MMIO accesses
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 19abfefd4c7604993d1c31e098a3f48bdafe334d
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_read':
>> sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'? [-Werror=implicit-function-declaration]
v = readl(aligned_addr);
^~~~~
d_real
sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_write':
>> sound/hda/hdac_bus.c:244:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
writel(v, aligned_addr);
^~~~~~
cc1: some warnings being treated as errors
vim +228 sound/hda/hdac_bus.c
218
219 #ifdef CONFIG_SND_HDA_ALIGNED_MMIO
220 /* Helpers for aligned read/write of mmio space, for Tegra */
221 unsigned int snd_hdac_aligned_read(void __iomem *addr, unsigned int mask)
222 {
223 void __iomem *aligned_addr =
224 (void __iomem *)((unsigned long)(addr) & ~0x3);
225 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3;
226 unsigned int v;
227
> 228 v = readl(aligned_addr);
229 return (v >> shift) & mask;
230 }
231 EXPORT_SYMBOL_GPL(snd_hdac_aligned_read);
232
233 void snd_hdac_aligned_write(unsigned int val, void __iomem *addr,
234 unsigned int mask)
235 {
236 void __iomem *aligned_addr =
237 (void __iomem *)((unsigned long)(addr) & ~0x3);
238 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3;
239 unsigned int v;
240
241 v = readl(aligned_addr);
242 v &= ~(mask << shift);
243 v |= val << shift;
> 244 writel(v, aligned_addr);
---
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: 48022 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190809/165e674e/attachment-0001.gz>
More information about the Alsa-devel
mailing list