Skip to contentSkip to conversation

linux-next: build failure after merge of the arm-soc tree

DISCUSSION Mark Brown 3 participants 3 messages Mar 9, 2014 – Mar 10, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the arm-soc tree, today's linux-next build (20140309) failed for arm64 defconfig like this:

/home/broonie/next/next/drivers/irqchip/irq-gic.c: In function 'gic_raise_softirq':
/home/broonie/next/next/drivers/irqchip/irq-gic.c:666:2: error: implicit declaration of function 'dmb' [-Werror=implicit-function-declaration]
dmb(ishst);
^
/home/broonie/next/next/drivers/irqchip/irq-gic.c:666:6: error: 'ishst' undeclared (first use in this function)

  dmb(ishst);
      ^

/home/broonie/next/next/drivers/irqchip/irq-gic.c:666:6: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[3]: *** [drivers/irqchip/irq-gic.o] Error 1

This is due to 8adbf57fc4294 (irqchip: gic: use dmb ishst instead of dsb
when raising a softirq) and has been going on for several builds now but
Stephen hasn't been including this build in his per-merge testing. I've
abandoned arm64 testing since a simple revert causes problems for arm.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140309/ab01db95/attachment.sig>

#1 lore raw
Quoted 1 line · Mark Brown

Hi all,

Hi Mark,

Quoted 7 lines

After merging the arm-soc tree, today's linux-next build (20140309) failed for arm64 defconfig like this:

/home/broonie/next/next/drivers/irqchip/irq-gic.c: In function 'gic_raise_softirq':
/home/broonie/next/next/drivers/irqchip/irq-gic.c:666:2: error: implicit declaration of function 'dmb' [-Werror=implicit-function-declaration]
dmb(ishst);
^

Damnit, that's because we ended up going with dmb instead of dsb after it (surprisingly) turned out to be sufficient. The simple patch below fixes the problem -- Catalin, can we get this into -next please?

I have an extra patch which actually makes use of the options, but we should get things building again first.

Cheers,

Will

--->8

Quoted 1 line

From bacbd4af61a671ad21f58197ed16116ff41b54cd Mon Sep 17 00:00:00 2001

From: Will Deacon <[email protected]>
Date: Mon, 10 Mar 2014 10:36:52 +0000
Subject: [PATCH] arm64: barriers: add dmb barrier

Commit 8adbf57fc429 ("irqchip: gic: use dmb ishst instead of dsb when raising a softirq") added an explicit dmb(...) call to the GIC driver.

This patch adds a simple dmb() macro to arm64, which expands to a DMB SY instruction.

---
 arch/arm64/include/asm/barrier.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/include/asm/barrier.h +1 -0
index 409ca370cfe2..66eb7648043b 100644
@@ -25,6 +25,7 @@
 #define wfi()		asm volatile("wfi" : : : "memory")
 
 #define isb()		asm volatile("isb" : : : "memory")
+#define dmb(opt)	asm volatile("dmb sy" : : : "memory")
 #define dsb(opt)	asm volatile("dsb sy" : : : "memory")
 
 #define mb()		dsb()
Signature · 1 line
1.8.2.2
maintainer
#2 lore raw
Quoted 8 lines · Will Deacon
Quoted 1 line · Mark Brown

Hi all,

Hi Mark,

Quoted 3 lines

After merging the arm-soc tree, today's linux-next build (20140309) failed for arm64 defconfig like this:

Quoted 8 lines
Quoted 4 lines

/home/broonie/next/next/drivers/irqchip/irq-gic.c: In function 'gic_raise_softirq':
/home/broonie/next/next/drivers/irqchip/irq-gic.c:666:2: error: implicit declaration of function 'dmb' [-Werror=implicit-function-declaration]
dmb(ishst);
^

Damnit, that's because we ended up going with dmb instead of dsb after it (surprisingly) turned out to be sufficient. The simple patch below fixes the problem -- Catalin, can we get this into -next please?

Done.

Signature · 1 line
Catalin