linux-next: build failure after merge of the powerpc-mpe tree
Subsystems (2)
Hi all,
After merging the powerpc-mpe tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
In file included from arch/powerpc/platforms/powernv/setup.c:36:0:arch/powerpc/include/asm/opal.h:214:17: error: 'enum OpalMessageType' declared inside parameter list [-Werror]
struct notifier_block *nb);
^Caused by commit d7cf83fcaf1b ("powerpc/powernv: Move opal-api.h closer to the Skiboot version") interacting with commit b921e90260ce ("powerpc/powernv: Add OPAL message notifier unregister function") from the powerpc tree.
I have added the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 26 Mar 2015 13:25:58 +1100
Subject: [PATCH] powerpc/powernv: fix for OpalMessageType name change
--- arch/powerpc/include/asm/opal.h | 2 +- arch/powerpc/platforms/powernv/opal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/opal.h +1 -1
@@ -210,7 +210,7 @@ extern int opal_notifier_unregister(struct notifier_block *nb);extern int opal_message_notifier_register (enum opal_msg_type msg_type,struct notifier_block *nb); -extern int opal_message_notifier_unregister (enum OpalMessageType msg_type, +extern int opal_message_notifier_unregister (enum opal_msg_type msg_type,struct notifier_block *nb);extern void opal_notifier_enable (void );extern void opal_notifier_disable (void );
arch/powerpc/platforms/powernv/opal.c +1 -1
@@ -318,7 +318,7 @@ int opal_message_notifier_register(enum opal_msg_type msg_type, &opal_msg_notifier_head[msg_type], nb); } -int opal_message_notifier_unregister (enum OpalMessageType msg_type, +int opal_message_notifier_unregister (enum opal_msg_type msg_type,struct notifier_block *nb) { return atomic_notifier_chain_unregister(
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the powerpc-mpe tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:In file included from
arch/powerpc/platforms/powernv/setup.c:36:0:arch/powerpc/include/asm/opal.h:214:17: error: 'enum OpalMessageType' declared inside parameter list [-Werror]struct notifier_block *nb); ^
Quoted 6 lines
Caused by commit
d7cf83fcaf1b("powerpc/powernv: Moveopal-api.hcloser to the Skiboot version") interacting with commitb921e90260ce("powerpc/powernv: Add OPAL message notifier unregister function") from the powerpc tree.I have added the following merge fix patch:
Michael, you can pull my next-misc branch and apply this fix to the merge commit to avoid bisection breakage.
Cheers,
Ben.
Quoted 39 lines
From: Stephen Rothwell <[email protected]>
Date: Thu, 26 Mar 2015 13:25:58 +1100
Subject: [PATCH] powerpc/powernv: fix for OpalMessageType name changeSigned-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/include/asm/opal.h | 2 +- arch/powerpc/platforms/powernv/opal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/powerpc/include/asm/opal.h +1
-1@@ -210,7 +210,7 @@ extern int opal_notifier_unregister(struct notifier_block *nb);extern int opal_message_notifier_register (enum opal_msg_type msg_type,struct notifier_block *nb); -extern int opal_message_notifier_unregister (enum OpalMessageType msg_type, +extern int opal_message_notifier_unregister (enum opal_msg_type msg_type,struct notifier_block *nb);extern void opal_notifier_enable (void );extern void opal_notifier_disable (void );arch/powerpc/platforms/powernv/opal.c +1
-1@@ -318,7 +318,7 @@ int opal_message_notifier_register(enum opal_msg_type msg_type, &opal_msg_notifier_head[msg_type], nb); } -int opal_message_notifier_unregister (enum OpalMessageType msg_type, +int opal_message_notifier_unregister (enum opal_msg_type msg_type,struct notifier_block *nb) { return atomic_notifier_chain_unregister(Signature · 1 line
2.1.4