public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c
@ 2005-03-21 15:19 Mikael Pettersson
  2005-03-21 16:45 ` Nathan Lynch
  2005-03-21 21:55 ` Paul Mackerras
  0 siblings, 2 replies; 4+ messages in thread
From: Mikael Pettersson @ 2005-03-21 15:19 UTC (permalink / raw)
  To: akpm, paulus; +Cc: linux-kernel, linuxppc64-dev

Compiling 2.6.12-rc1-mm1 for ppc64 fails with:

arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier'
arch/ppc64/kernel/prom.c:1692: error: field name not in record or union initializer
arch/ppc64/kernel/prom.c:1692: error: (near initialization for 'prom_reconfig_nb')
arch/ppc64/kernel/prom.c:1692: warning: initialization makes pointer from integer without a cast
make[1]: *** [arch/ppc64/kernel/prom.o] Error 1
make: *** [arch/ppc64/kernel] Error 2

Fix: repair the obvious syntax error (missing "=").

Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>

--- linux-2.6.12-rc1-mm1/arch/ppc64/kernel/prom.c.~1~	2005-03-21 14:48:51.000000000 +0100
+++ linux-2.6.12-rc1-mm1/arch/ppc64/kernel/prom.c	2005-03-21 15:14:19.000000000 +0100
@@ -1688,7 +1688,7 @@ static int prom_reconfig_notifier(struct
 }
 
 static struct notifier_block prom_reconfig_nb = {
-	.notifier_call prom_reconfig_notifier,
+	.notifier_call = prom_reconfig_notifier,
 	.priority = 10, /* This one needs to run first */
 };
 

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

* Re: [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c
  2005-03-21 15:19 [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c Mikael Pettersson
@ 2005-03-21 16:45 ` Nathan Lynch
  2005-03-21 21:55 ` Paul Mackerras
  1 sibling, 0 replies; 4+ messages in thread
From: Nathan Lynch @ 2005-03-21 16:45 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: akpm, paulus, linux-kernel, linuxppc64-dev

On Mon, Mar 21, 2005 at 04:19:01PM +0100, Mikael Pettersson wrote:
> Compiling 2.6.12-rc1-mm1 for ppc64 fails with:
> 
> arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier'
> arch/ppc64/kernel/prom.c:1692: error: field name not in record or union initializer
> arch/ppc64/kernel/prom.c:1692: error: (near initialization for 'prom_reconfig_nb')
> arch/ppc64/kernel/prom.c:1692: warning: initialization makes pointer from integer without a cast
> make[1]: *** [arch/ppc64/kernel/prom.o] Error 1
> make: *** [arch/ppc64/kernel] Error 2
> 
> Fix: repair the obvious syntax error (missing "=").

Thanks for the fix; the mistake was mine.  Lest Andrew and Paulus
think I'm sending untested patches, the compiler I'm using (gcc
3.3.3-hammer) does not give an error or even a warning.  Sorry for the
inconvenience; I'll have to upgrade to a less forgiving version of
gcc.


Nathan

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

* Re: [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c
  2005-03-21 15:19 [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c Mikael Pettersson
  2005-03-21 16:45 ` Nathan Lynch
@ 2005-03-21 21:55 ` Paul Mackerras
  2005-03-21 22:56   ` Nathan Lynch
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2005-03-21 21:55 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: akpm, linux-kernel, linuxppc64-dev

Mikael Pettersson writes:

> Compiling 2.6.12-rc1-mm1 for ppc64 fails with:
> 
> arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier'

Currently prom.c is in a mess because Linus applied the last 2 of 8
patches from Nathan Lynch but not the first 6.  :-P

Paul.

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

* Re: [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c
  2005-03-21 21:55 ` Paul Mackerras
@ 2005-03-21 22:56   ` Nathan Lynch
  0 siblings, 0 replies; 4+ messages in thread
From: Nathan Lynch @ 2005-03-21 22:56 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Mikael Pettersson, akpm, linuxppc64-dev, linux-kernel

On Tue, Mar 22, 2005 at 08:55:15AM +1100, Paul Mackerras wrote:
> Mikael Pettersson writes:
> 
> > Compiling 2.6.12-rc1-mm1 for ppc64 fails with:
> > 
> > arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier'
> 
> Currently prom.c is in a mess because Linus applied the last 2 of 8
> patches from Nathan Lynch but not the first 6.  :-P

Actually, this one is my fault, although unless I'm really missing
something gcc 3.4.2 silently accepts the invalid syntax.

All eight of the patches from the pSeries reconfig series are present
in 2.6.12-rc1-mm1.  The error Mikael reported is unrelated to the
state of Linus' tree, and his patch is correct.  (The mistake is
present in both versions of the patches which I posted for review on
linuxppc64-dev; nobody caught it.)


Nathan

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

end of thread, other threads:[~2005-03-21 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21 15:19 [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c Mikael Pettersson
2005-03-21 16:45 ` Nathan Lynch
2005-03-21 21:55 ` Paul Mackerras
2005-03-21 22:56   ` Nathan Lynch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox