linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c
@ 2012-09-02 12:25 Axel Lin
  2012-09-03 10:47 ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Axel Lin @ 2012-09-02 12:25 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Srinidhi Kasagar, Russell King, linux-arm-kernel, linux-kernel

Include asm/pmu.h to fix below build error:

  CC      arch/arm/mach-ux500/cpu-db8500.o
arch/arm/mach-ux500/cpu-db8500.c:118:8: error: variable 'db8500_pmu_platdata' has initializer but incomplete type
arch/arm/mach-ux500/cpu-db8500.c:119:2: error: unknown field 'handle_irq' specified in initializer
arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: excess elements in struct initializer [enabled by default]
arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: (near initialization for 'db8500_pmu_platdata') [enabled by default]
make[1]: *** [arch/arm/mach-ux500/cpu-db8500.o] Error 1
make: *** [arch/arm/mach-ux500] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 arch/arm/mach-ux500/cpu-db8500.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index 8169f2c..3ce7d94 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -18,6 +18,7 @@
 #include <linux/io.h>
 #include <linux/mfd/abx500/ab8500.h>
 
+#include <asm/pmu.h>
 #include <asm/mach/map.h>
 #include <plat/gpio-nomadik.h>
 #include <mach/hardware.h>
-- 
1.7.9.5




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

* Re: [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c
  2012-09-02 12:25 [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c Axel Lin
@ 2012-09-03 10:47 ` Linus Walleij
  2012-09-03 11:40   ` Axel Lin
  2012-09-03 13:38   ` Will Deacon
  0 siblings, 2 replies; 5+ messages in thread
From: Linus Walleij @ 2012-09-03 10:47 UTC (permalink / raw)
  To: Axel Lin, Will Deacon
  Cc: Srinidhi Kasagar, Russell King, linux-arm-kernel, linux-kernel

On Sun, Sep 2, 2012 at 2:25 PM, Axel Lin <axel.lin@gmail.com> wrote:

> Include asm/pmu.h to fix below build error:
>
>   CC      arch/arm/mach-ux500/cpu-db8500.o
> arch/arm/mach-ux500/cpu-db8500.c:118:8: error: variable 'db8500_pmu_platdata' has initializer but incomplete type
> arch/arm/mach-ux500/cpu-db8500.c:119:2: error: unknown field 'handle_irq' specified in initializer
> arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: excess elements in struct initializer [enabled by default]
> arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: (near initialization for 'db8500_pmu_platdata') [enabled by default]
> make[1]: *** [arch/arm/mach-ux500/cpu-db8500.o] Error 1
> make: *** [arch/arm/mach-ux500] Error 2
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

That's on linux-next not on v3.6-rcN right?

I've applied it to my ux500 branch and will carry it unless Will Deacon
express an interest in it, PMU is his territory...

Yours,
Linus Walleij

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

* Re: [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c
  2012-09-03 10:47 ` Linus Walleij
@ 2012-09-03 11:40   ` Axel Lin
  2012-09-03 13:38   ` Will Deacon
  1 sibling, 0 replies; 5+ messages in thread
From: Axel Lin @ 2012-09-03 11:40 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Will Deacon, Srinidhi Kasagar, Russell King, linux-arm-kernel,
	linux-kernel

2012/9/3 Linus Walleij <linus.walleij@linaro.org>:
> On Sun, Sep 2, 2012 at 2:25 PM, Axel Lin <axel.lin@gmail.com> wrote:
>
>> Include asm/pmu.h to fix below build error:
>>
>>   CC      arch/arm/mach-ux500/cpu-db8500.o
>> arch/arm/mach-ux500/cpu-db8500.c:118:8: error: variable 'db8500_pmu_platdata' has initializer but incomplete type
>> arch/arm/mach-ux500/cpu-db8500.c:119:2: error: unknown field 'handle_irq' specified in initializer
>> arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: excess elements in struct initializer [enabled by default]
>> arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: (near initialization for 'db8500_pmu_platdata') [enabled by default]
>> make[1]: *** [arch/arm/mach-ux500/cpu-db8500.o] Error 1
>> make: *** [arch/arm/mach-ux500] Error 2
>>
>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>
> That's on linux-next not on v3.6-rcN right?
Yes, This patch is against linux-next tree.

>
> I've applied it to my ux500 branch and will carry it unless Will Deacon
> express an interest in it, PMU is his territory...

Thanks,
Axel

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

* Re: [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c
  2012-09-03 10:47 ` Linus Walleij
  2012-09-03 11:40   ` Axel Lin
@ 2012-09-03 13:38   ` Will Deacon
  2012-09-03 14:17     ` Linus Walleij
  1 sibling, 1 reply; 5+ messages in thread
From: Will Deacon @ 2012-09-03 13:38 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Axel Lin, Srinidhi Kasagar, Russell King, linux-arm-kernel, linux-kernel

On Mon, Sep 03, 2012 at 11:47:51AM +0100, Linus Walleij wrote:
> On Sun, Sep 2, 2012 at 2:25 PM, Axel Lin <axel.lin@gmail.com> wrote:
> 
> > Include asm/pmu.h to fix below build error:
> >
> >   CC      arch/arm/mach-ux500/cpu-db8500.o
> > arch/arm/mach-ux500/cpu-db8500.c:118:8: error: variable 'db8500_pmu_platdata' has initializer but incomplete type
> > arch/arm/mach-ux500/cpu-db8500.c:119:2: error: unknown field 'handle_irq' specified in initializer
> > arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: excess elements in struct initializer [enabled by default]
> > arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: (near initialization for 'db8500_pmu_platdata') [enabled by default]
> > make[1]: *** [arch/arm/mach-ux500/cpu-db8500.o] Error 1
> > make: *** [arch/arm/mach-ux500] Error 2
> >
> > Signed-off-by: Axel Lin <axel.lin@gmail.com>
> 
> That's on linux-next not on v3.6-rcN right?
> 
> I've applied it to my ux500 branch and will carry it unless Will Deacon
> express an interest in it, PMU is his territory...

I've already sent a pull for those patches, so please can you carry the
fixup? u8500 is the only platform using the arm_pmu_platdata at the moment
so it has to keep the include.

Cheers,

Will

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

* Re: [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c
  2012-09-03 13:38   ` Will Deacon
@ 2012-09-03 14:17     ` Linus Walleij
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2012-09-03 14:17 UTC (permalink / raw)
  To: Will Deacon
  Cc: Axel Lin, Srinidhi Kasagar, Russell King, linux-arm-kernel, linux-kernel

On Mon, Sep 3, 2012 at 3:38 PM, Will Deacon <will.deacon@arm.com> wrote:
> On Mon, Sep 03, 2012 at 11:47:51AM +0100, Linus Walleij wrote:
>> On Sun, Sep 2, 2012 at 2:25 PM, Axel Lin <axel.lin@gmail.com> wrote:
>>
>> > Include asm/pmu.h to fix below build error:
>> >
>> >   CC      arch/arm/mach-ux500/cpu-db8500.o
>> > arch/arm/mach-ux500/cpu-db8500.c:118:8: error: variable 'db8500_pmu_platdata' has initializer but incomplete type
>> > arch/arm/mach-ux500/cpu-db8500.c:119:2: error: unknown field 'handle_irq' specified in initializer
>> > arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: excess elements in struct initializer [enabled by default]
>> > arch/arm/mach-ux500/cpu-db8500.c:119:2: warning: (near initialization for 'db8500_pmu_platdata') [enabled by default]
>> > make[1]: *** [arch/arm/mach-ux500/cpu-db8500.o] Error 1
>> > make: *** [arch/arm/mach-ux500] Error 2
>> >
>> > Signed-off-by: Axel Lin <axel.lin@gmail.com>
>>
>> That's on linux-next not on v3.6-rcN right?
>>
>> I've applied it to my ux500 branch and will carry it unless Will Deacon
>> express an interest in it, PMU is his territory...
>
> I've already sent a pull for those patches, so please can you carry the
> fixup? u8500 is the only platform using the arm_pmu_platdata at the moment
> so it has to keep the include.

OK I'll take it...

Yours,
Linus Walleij

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

end of thread, other threads:[~2012-09-03 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-02 12:25 [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c Axel Lin
2012-09-03 10:47 ` Linus Walleij
2012-09-03 11:40   ` Axel Lin
2012-09-03 13:38   ` Will Deacon
2012-09-03 14:17     ` Linus Walleij

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).