linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h
@ 2014-11-28 10:36 Marc Zyngier
  2014-11-28 10:39 ` Will Deacon
  2014-11-28 16:49 ` Jason Cooper
  0 siblings, 2 replies; 3+ messages in thread
From: Marc Zyngier @ 2014-11-28 10:36 UTC (permalink / raw)
  To: linux-arm-kernel

Commit 01f17a66be97 (irqchip: gic: Remove warning by including
linux/irqdomain.h) indeed fixed an annoying warning in the ARM
code, but also broke the compilation of arm64 defconfig and
any other defconfig that includes KVM support in a rather
spectacular way:

http://lists.linaro.org/pipermail/kernel-build-reports/2014-November/006475.html

Moving the #include directive to a spot that is not going to
be used by assembly code fixes the issue.

Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
 include/linux/irqchip/arm-gic.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h
index d1b2263..71d706d 100644
--- a/include/linux/irqchip/arm-gic.h
+++ b/include/linux/irqchip/arm-gic.h
@@ -10,8 +10,6 @@
 #ifndef __LINUX_IRQCHIP_ARM_GIC_H
 #define __LINUX_IRQCHIP_ARM_GIC_H
 
-#include <linux/irqdomain.h>
-
 #define GIC_CPU_CTRL			0x00
 #define GIC_CPU_PRIMASK			0x04
 #define GIC_CPU_BINPOINT		0x08
@@ -93,6 +91,8 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/irqdomain.h>
+
 struct device_node;
 
 extern struct irq_chip gic_arch_extn;
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h
  2014-11-28 10:36 [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h Marc Zyngier
@ 2014-11-28 10:39 ` Will Deacon
  2014-11-28 16:49 ` Jason Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2014-11-28 10:39 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Nov 28, 2014 at 10:36:15AM +0000, Marc Zyngier wrote:
> Commit 01f17a66be97 (irqchip: gic: Remove warning by including
> linux/irqdomain.h) indeed fixed an annoying warning in the ARM
> code, but also broke the compilation of arm64 defconfig and
> any other defconfig that includes KVM support in a rather
> spectacular way:
> 
> http://lists.linaro.org/pipermail/kernel-build-reports/2014-November/006475.html
> 
> Moving the #include directive to a spot that is not going to
> be used by assembly code fixes the issue.
> 
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
>  include/linux/irqchip/arm-gic.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Acked-by: Will Deacon <will.deacon@arm.com>

arm64 allmodconfig is dead in the water without this fix.

Will

> diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h
> index d1b2263..71d706d 100644
> --- a/include/linux/irqchip/arm-gic.h
> +++ b/include/linux/irqchip/arm-gic.h
> @@ -10,8 +10,6 @@
>  #ifndef __LINUX_IRQCHIP_ARM_GIC_H
>  #define __LINUX_IRQCHIP_ARM_GIC_H
>  
> -#include <linux/irqdomain.h>
> -
>  #define GIC_CPU_CTRL			0x00
>  #define GIC_CPU_PRIMASK			0x04
>  #define GIC_CPU_BINPOINT		0x08
> @@ -93,6 +91,8 @@
>  
>  #ifndef __ASSEMBLY__
>  
> +#include <linux/irqdomain.h>
> +
>  struct device_node;
>  
>  extern struct irq_chip gic_arch_extn;
> -- 
> 2.1.3
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h
  2014-11-28 10:36 [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h Marc Zyngier
  2014-11-28 10:39 ` Will Deacon
@ 2014-11-28 16:49 ` Jason Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Cooper @ 2014-11-28 16:49 UTC (permalink / raw)
  To: linux-arm-kernel

Marc,

On Fri, Nov 28, 2014 at 10:36:15AM +0000, Marc Zyngier wrote:
> Commit 01f17a66be97 (irqchip: gic: Remove warning by including
> linux/irqdomain.h) indeed fixed an annoying warning in the ARM
> code, but also broke the compilation of arm64 defconfig and
> any other defconfig that includes KVM support in a rather
> spectacular way:
> 
> http://lists.linaro.org/pipermail/kernel-build-reports/2014-November/006475.html
> 
> Moving the #include directive to a spot that is not going to
> be used by assembly code fixes the issue.
> 
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
>  include/linux/irqchip/arm-gic.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

I squashed this into the original fix with your S-o-b, and Will's Ack.
Pushing to irqchip/for-next shortly.

thx,

Jason.

------------8<----------------------
commit df870c78848aac4d953f61a8926a792de8133b9e
Author: Jason Cooper <jason@lakedaemon.net>
Date:   Thu Nov 27 18:27:49 2014 +0000

    irqchip: gic: Remove warning by including linux/irqdomain.h
    
    Commit
    
      853a33ce6932 irqchip: gic-v2m: Add support for ARM GICv2m MSI(-X) doorbell
    
    Introduced a series of warnings when building ARM multi_v7_defconfig:
    
      include/linux/irqchip/arm-gic.h:109:53: warning: its scope is only this definition or declaration, which is probably not what you want
      In file included from arch/arm/mach-ux500/pm.c:13:0:
      include/linux/irqchip/arm-gic.h:109:53: warning: 'struct irq_domain' declared inside parameter list
       int gicv2m_of_init(struct device_node *node, struct irq_domain *parent);
                                                           ^
    
    Fix this by adding the proper include.
    
    Signed-off-by: Jason Cooper <jason@lakedaemon.net>
    [ jac merged much more correct version from Marc into this patch ]
    Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
    Acked-by: Will Deacon <will.deacon@arm.com>
    Link: https://lkml.kernel.org/r/1417170975-1163-1-git-send-email-marc.zyngier at arm.com
    Signed-off-by: Jason Cooper <jason@lakedaemon.net>

diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h
index 60b09ed58cae..71d706d5f169 100644
--- a/include/linux/irqchip/arm-gic.h
+++ b/include/linux/irqchip/arm-gic.h
@@ -91,6 +91,8 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/irqdomain.h>
+
 struct device_node;
 
 extern struct irq_chip gic_arch_extn;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-28 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 10:36 [PATCH NEXT] irqchip: gic: fix compilation of asm code depending on arm-gic.h Marc Zyngier
2014-11-28 10:39 ` Will Deacon
2014-11-28 16:49 ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).