Re: [PATCH] x86/pci: print ioh resources only

From: Linus Torvalds
Date: Thu Jan 28 2010 - 13:56:22 EST




On Thu, 28 Jan 2010, Yinghai Lu wrote:
> @@ -43,7 +43,7 @@ static void __devinit pci_root_bus_res(s
> {
> u16 word;
> u32 dword;
> - struct pci_root_info *info;
> + struct pci_root_info info;

That structure is something like a kilobyte in size, please don't put
those things on the stack (sixteen "struct resource" entries).

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