Skip to contentSkip to conversation

linux-next: build failure after merge of the sound tree

PATCH Stephen Rothwell 2 participants 2 messages Aug 9, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the sound tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

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);
^~~~~~

Caused by commit

19abfefd4c76 ("ALSA: hda: Direct MMIO accesses")

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Fri, 9 Aug 2019 12:50:25 +1000
Subject: [PATCH] ALSA: hda: readl/writel need linux/io.h

Fixes 19abfefd4c76 ("ALSA: hda: Direct MMIO accesses")
---
 sound/hda/hdac_bus.c | 1 +
 1 file changed, 1 insertion(+)
sound/hda/hdac_bus.c +1 -0
index dc2523ef7d98..cd25e2b3f7f2 100644
@@ -4,6 +4,7 @@
  */
 
 #include <linux/init.h>
+#include <linux/io.h>
 #include <linux/device.h>
 #include <linux/module.h>
 #include <linux/export.h>
Signature · 5 lines
2.20.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 37 lines · Stephen Rothwell

Hi all,

After merging the sound tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

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);
^~~~~~

Caused by commit

19abfefd4c76 ("ALSA: hda: Direct MMIO accesses")

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Fri, 9 Aug 2019 12:50:25 +1000
Subject: [PATCH] ALSA: hda: readl/writel need linux/io.h

Fixes 19abfefd4c76 ("ALSA: hda: Direct MMIO accesses")
---
 sound/hda/hdac_bus.c | 1 +
 1 file changed, 1 insertion(+)
sound/hda/hdac_bus.c +0 -0
index dc2523ef7d98..cd25e2b3f7f2 100644

sound/hda/hdac_bus.c line 10

Quoted 7 lines
sound/hda/hdac_bus.c +1 -0
@@ -4,6 +4,7 @@
  */
 
 #include <linux/init.h>
+#include <linux/io.h>
 #include <linux/device.h>
 #include <linux/module.h>
 #include <linux/export.h>

Thanks, it's obviously a right fix.

I applied it on top of topic/hda-bus-ops-cleanup branch branch. Mark, feel free to pull it into yours again.

Takashi