[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081022071909.GB27637@elte.hu>
Date: Wed, 22 Oct 2008 09:19:09 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Yu Zhao <yu.zhao@...el.com>
Cc: "linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"jbarnes@...tuousgeek.org" <jbarnes@...tuousgeek.org>,
"randy.dunlap@...cle.com" <randy.dunlap@...cle.com>,
"grundler@...isc-linux.org" <grundler@...isc-linux.org>,
"achiang@...com" <achiang@...com>,
"matthew@....cx" <matthew@....cx>,
"rdreier@...co.com" <rdreier@...co.com>,
"greg@...ah.com" <greg@...ah.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"virtualization@...ts.linux-foundation.org"
<virtualization@...ts.linux-foundation.org>,
Yinghai Lu <yinghai@...nel.org>
Subject: Re: [PATCH 8/15 v5] PCI: add boot options to reassign resources
* Yu Zhao <yu.zhao@...el.com> wrote:
> +static char *pci_assign_pio;
> +static char *pci_assign_mmio;
> +
> +static int pcibios_bus_resource_needs_fixup(struct pci_bus *bus)
> +{
> + int i;
> + int type = 0;
> + int domain, busnr;
> +
> + if (!bus->self)
> + return 0;
> +
> + for (i = 0; i < 2; i++) {
> + char *str = i ? pci_assign_pio : pci_assign_mmio;
> + while (str && *str) {
please put a newline after local variable defitions.
> + for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
> + struct resource *res = bus->resource[i];
> + if (!res)
ditto.
nice debug feature!
Ingo
--
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