* [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call
@ 2014-06-04 9:06 Arnd Bergmann
2014-06-04 9:40 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2014-06-04 9:06 UTC (permalink / raw)
To: linux-arm-kernel
The prototype for mvebu_mbus_dt_init() changed around the same time
as a new caller was added to orion5x. This adds the missing argument
to make orion5x behave correctly to avoid this build error:
mach-orion5x/board-dt.c: In function 'orion5x_dt_init':
mach-orion5x/board-dt.c:48:2: error: too few arguments to function 'mvebu_mbus_dt_init'
BUG_ON(mvebu_mbus_dt_init());
^
In file included from mach-orion5x/board-dt.c:18:0:
include/linux/mbus.h:76:5: note: declared here
int mvebu_mbus_dt_init(bool is_coherent);
^
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
Thomas, I assume you were aware of this problem since you
wrote the two patches that clashed, but for some reason we
screwed it up when merging them into arm-soc. Should we apply
this directly as a bug fix to arm-soc or did you already have
another solution planned?
diff --git a/arch/arm/mach-orion5x/board-dt.c b/arch/arm/mach-orion5x/board-dt.c
index 35d418f..79f033b 100644
--- a/arch/arm/mach-orion5x/board-dt.c
+++ b/arch/arm/mach-orion5x/board-dt.c
@@ -45,7 +45,7 @@ static void __init orion5x_dt_init(void)
orion5x_id(&dev, &rev, &dev_name);
printk(KERN_INFO "Orion ID: %s. TCLK=%d.\n", dev_name, orion5x_tclk);
- BUG_ON(mvebu_mbus_dt_init());
+ BUG_ON(mvebu_mbus_dt_init(false));
/*
* Setup Orion address map
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call
2014-06-04 9:06 [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call Arnd Bergmann
@ 2014-06-04 9:40 ` Thomas Petazzoni
2014-06-04 10:36 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-06-04 9:40 UTC (permalink / raw)
To: linux-arm-kernel
Dear Arnd Bergmann,
On Wed, 04 Jun 2014 11:06:40 +0200, Arnd Bergmann wrote:
> The prototype for mvebu_mbus_dt_init() changed around the same time
> as a new caller was added to orion5x. This adds the missing argument
> to make orion5x behave correctly to avoid this build error:
>
> mach-orion5x/board-dt.c: In function 'orion5x_dt_init':
> mach-orion5x/board-dt.c:48:2: error: too few arguments to function 'mvebu_mbus_dt_init'
> BUG_ON(mvebu_mbus_dt_init());
> ^
> In file included from mach-orion5x/board-dt.c:18:0:
> include/linux/mbus.h:76:5: note: declared here
> int mvebu_mbus_dt_init(bool is_coherent);
> ^
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Thomas, I assume you were aware of this problem since you
> wrote the two patches that clashed, but for some reason we
> screwed it up when merging them into arm-soc. Should we apply
> this directly as a bug fix to arm-soc or did you already have
> another solution planned?
Yes, I am indeed aware of this change. I think I did a patch to fix it
at some point, but maybe it got lost in the merging process, or simply
I don't remember correctly what happened. It's indeed caused by an
interaction between changes in the mvebu-mbus driver and the conversion
of mach-orion5x to DT. Your patch is the correct solution.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call
2014-06-04 9:40 ` Thomas Petazzoni
@ 2014-06-04 10:36 ` Arnd Bergmann
2014-06-04 13:45 ` Jason Cooper
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2014-06-04 10:36 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 04 June 2014 11:40:06 Thomas Petazzoni wrote:
>
> On Wed, 04 Jun 2014 11:06:40 +0200, Arnd Bergmann wrote:
> > The prototype for mvebu_mbus_dt_init() changed around the same time
> > as a new caller was added to orion5x. This adds the missing argument
> > to make orion5x behave correctly to avoid this build error:
> >
> > mach-orion5x/board-dt.c: In function 'orion5x_dt_init':
> > mach-orion5x/board-dt.c:48:2: error: too few arguments to function 'mvebu_mbus_dt_init'
> > BUG_ON(mvebu_mbus_dt_init());
> > ^
> > In file included from mach-orion5x/board-dt.c:18:0:
> > include/linux/mbus.h:76:5: note: declared here
> > int mvebu_mbus_dt_init(bool is_coherent);
> > ^
> >
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>
Ok, thanks!
I've added my patch to the next/soc2 branch now, which already contains
both branches that introduce the problem when combined.
This saves us creating a fixes branch on top of the mid-merge window
state of torvalds/next.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call
2014-06-04 10:36 ` Arnd Bergmann
@ 2014-06-04 13:45 ` Jason Cooper
0 siblings, 0 replies; 4+ messages in thread
From: Jason Cooper @ 2014-06-04 13:45 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 04, 2014 at 12:36:49PM +0200, Arnd Bergmann wrote:
> On Wednesday 04 June 2014 11:40:06 Thomas Petazzoni wrote:
> >
> > On Wed, 04 Jun 2014 11:06:40 +0200, Arnd Bergmann wrote:
> > > The prototype for mvebu_mbus_dt_init() changed around the same time
> > > as a new caller was added to orion5x. This adds the missing argument
> > > to make orion5x behave correctly to avoid this build error:
> > >
> > > mach-orion5x/board-dt.c: In function 'orion5x_dt_init':
> > > mach-orion5x/board-dt.c:48:2: error: too few arguments to function 'mvebu_mbus_dt_init'
> > > BUG_ON(mvebu_mbus_dt_init());
> > > ^
> > > In file included from mach-orion5x/board-dt.c:18:0:
> > > include/linux/mbus.h:76:5: note: declared here
> > > int mvebu_mbus_dt_init(bool is_coherent);
> > > ^
> > >
> > > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> >
> > Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> >
>
> Ok, thanks!
>
> I've added my patch to the next/soc2 branch now, which already contains
> both branches that introduce the problem when combined.
>
> This saves us creating a fixes branch on top of the mid-merge window
> state of torvalds/next.
Thanks, Arnd. That was most likely my fault. I also don't recall what
happened, but your fix is the correct one. Thanks for catching that.
thx,
Jason.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-04 13:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 9:06 [PATCH] ARM: orion5x: fix mvebu_mbus_dt_init call Arnd Bergmann
2014-06-04 9:40 ` Thomas Petazzoni
2014-06-04 10:36 ` Arnd Bergmann
2014-06-04 13:45 ` Jason Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox