lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 7 Apr 2011 12:30:03 +0200
From:	Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To:	Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc:	linux-pci@...r.kernel.org, linux-arch@...r.kernel.org,
	linux-kernel@...r.kernel.org, davem@...emloft.net,
	bheglaas@...gle.com, monstr@...str.eu, tglx@...utronix.de
Subject: Re: [PATCH 4/5] x86/devicetree: Use generic PCI <-> OF matching

* Benjamin Herrenschmidt | 2011-04-07 13:26:35 [+1000]:

>Instead of walking the whole PCI tree to update the of_node's for
>PCI busses and devices after the fact, enable the new generic core
>code for doing so by providing the proper device nodes for the
>PCI host bridges
>
>Signed-off-by: Benjamin Herrenschmidt <benh@...nel.crashing.org>

Ben, please add this to the series or melt into this patch :)

>From 1460c529a53a393dd3b41cdcd72ecc6ff1d3646e Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Date: Thu, 7 Apr 2011 10:47:51 +0200
Subject: [PATCH] x86: dt: remove unused and/or shadowed variables

|arch/x86/kernel/devicetree.c: In function 'pcibios_get_phb_of_node':
|arch/x86/kernel/devicetree.c:135:23: warning: unused variable 'child'
|arch/x86/kernel/devicetree.c:129:15: warning: unused variable 'bus_min'
|arch/x86/kernel/devicetree.c:144:1: warning: control reaches end of non-void function
|arch/x86/kernel/devicetree.c:141:10: warning: 'bus' may be used uninitialized in this function

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
---
 arch/x86/kernel/devicetree.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c
index f6c9d67..3568496 100644
--- a/arch/x86/kernel/devicetree.c
+++ b/arch/x86/kernel/devicetree.c
@@ -123,16 +123,13 @@ static int __init add_bus_probe(void)
 module_init(add_bus_probe);
 
 #ifdef CONFIG_PCI
-struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus)
+struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
 {
 	struct device_node *np;
-	unsigned int bus_min;
 
 	for_each_node_by_type(np, "pci") {
 		const void *prop;
-		struct pci_bus *bus;
 		unsigned int bus_min;
-		struct device_node *child;
 
 		prop = of_get_property(np, "bus-range", NULL);
 		if (!prop)
@@ -141,6 +138,7 @@ struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus)
 		if (bus->number == bus_min)
 			return np;
 	}
+	return NULL;
 }
 
 static int x86_of_pci_irq_enable(struct pci_dev *dev)
-- 
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ