linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [patch 5/5] arch/powerpc/platforms/pseries/eeh_driver.c: fix warning
@ 2008-06-09 23:26 akpm
  2008-06-09 23:47 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2008-06-09 23:26 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev, akpm

From: Andrew Morton <akpm@linux-foundation.org>

Fix this:

/usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c: In function 'print_device_node_tree':
/usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c:55: warning: ISO C90 forbids mixed declarations and code

also make that function look like it's part of Linux.  I mean, wtf are you
guys up to down there??

[akpm@linux-foundation.org: coding-style fixes]
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/powerpc/platforms/pseries/eeh_driver.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff -puN arch/powerpc/platforms/pseries/eeh_driver.c~arch-powerpc-platforms-pseries-eeh_driverc-fix-warning arch/powerpc/platforms/pseries/eeh_driver.c
--- a/arch/powerpc/platforms/pseries/eeh_driver.c~arch-powerpc-platforms-pseries-eeh_driverc-fix-warning
+++ a/arch/powerpc/platforms/pseries/eeh_driver.c
@@ -42,17 +42,20 @@ static inline const char * pcid_name (st
 }
 
 #ifdef DEBUG
-static void print_device_node_tree (struct pci_dn *pdn, int dent)
+static void print_device_node_tree(struct pci_dn *pdn, int dent)
 {
 	int i;
-	if (!pdn) return;
-	for (i=0;i<dent; i++)
+	struct device_node *pc;
+
+	if (!pdn)
+		return;
+	for (i = 0; i < dent; i++)
 		printk(" ");
 	printk("dn=%s mode=%x \tcfg_addr=%x pe_addr=%x \tfull=%s\n",
 		pdn->node->name, pdn->eeh_mode, pdn->eeh_config_addr,
 		pdn->eeh_pe_config_addr, pdn->node->full_name);
 	dent += 3;
-	struct device_node *pc = pdn->node->child;
+	pc = pdn->node->child;
 	while (pc) {
 		print_device_node_tree(PCI_DN(pc), dent);
 		pc = pc->sibling;
_

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

* Re: [patch 5/5] arch/powerpc/platforms/pseries/eeh_driver.c: fix warning
  2008-06-09 23:26 [patch 5/5] arch/powerpc/platforms/pseries/eeh_driver.c: fix warning akpm
@ 2008-06-09 23:47 ` Benjamin Herrenschmidt
  2008-06-10  0:00   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2008-06-09 23:47 UTC (permalink / raw)
  To: akpm; +Cc: linuxppc-dev, paulus

On Mon, 2008-06-09 at 16:26 -0700, akpm@linux-foundation.org wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> 
> Fix this:
> 
> /usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c: In function 'print_device_node_tree':
> /usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c:55: warning: ISO C90 forbids mixed declarations and code
> 
> also make that function look like it's part of Linux.  I mean, wtf are you
> guys up to down there??

The EEH code ... oh well. It does need some love...

> [akpm@linux-foundation.org: coding-style fixes]

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> Cc: Paul Mackerras <paulus@samba.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---

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

* Re: [patch 5/5] arch/powerpc/platforms/pseries/eeh_driver.c: fix warning
  2008-06-09 23:47 ` Benjamin Herrenschmidt
@ 2008-06-10  0:00   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2008-06-10  0:00 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev, paulus

On Tue, 10 Jun 2008 09:47:02 +1000
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> On Mon, 2008-06-09 at 16:26 -0700, akpm@linux-foundation.org wrote:
> > From: Andrew Morton <akpm@linux-foundation.org>
> > 
> > Fix this:
> > 
> > /usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c: In function 'print_device_node_tree':
> > /usr/src/devel/arch/powerpc/platforms/pseries/eeh_driver.c:55: warning: ISO C90 forbids mixed declarations and code
> > 
> > also make that function look like it's part of Linux.  I mean, wtf are you
> > guys up to down there??
> 
> The EEH code ... oh well. It does need some love...

Feel free to make the changelog more family-friendly.  You can always
tell how many build errors I fixed in the predecing six hours..

> > [akpm@linux-foundation.org: coding-style fixes]
> 
> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Thanks.

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

end of thread, other threads:[~2008-06-10  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 23:26 [patch 5/5] arch/powerpc/platforms/pseries/eeh_driver.c: fix warning akpm
2008-06-09 23:47 ` Benjamin Herrenschmidt
2008-06-10  0:00   ` Andrew Morton

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