Commit 8e01520c authored by Andrew Morton's avatar Andrew Morton Committed by Paul Mackerras

[POWERPC] Fix warning in pseries/eeh_driver.c

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.
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 958a65f2
...@@ -42,17 +42,20 @@ static inline const char * pcid_name (struct pci_dev *pdev) ...@@ -42,17 +42,20 @@ static inline const char * pcid_name (struct pci_dev *pdev)
} }
#ifdef DEBUG #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; int i;
if (!pdn) return; struct device_node *pc;
for (i=0;i<dent; i++)
if (!pdn)
return;
for (i = 0; i < dent; i++)
printk(" "); printk(" ");
printk("dn=%s mode=%x \tcfg_addr=%x pe_addr=%x \tfull=%s\n", 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->node->name, pdn->eeh_mode, pdn->eeh_config_addr,
pdn->eeh_pe_config_addr, pdn->node->full_name); pdn->eeh_pe_config_addr, pdn->node->full_name);
dent += 3; dent += 3;
struct device_node *pc = pdn->node->child; pc = pdn->node->child;
while (pc) { while (pc) {
print_device_node_tree(PCI_DN(pc), dent); print_device_node_tree(PCI_DN(pc), dent);
pc = pc->sibling; pc = pc->sibling;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment