Re: [PATCH -mm] 1/2: MMCONFIG: validate against ACPI motherboardresources

From: Matt Keenan
Date: Wed May 30 2007 - 04:42:00 EST


Linus Torvalds wrote:
On Tue, 29 May 2007, Robert Hancock wrote:
This path adds validation of the MMCONFIG table against the ACPI reserved
motherboard resources.

Please fix the formatting of your code.

[snip snip]
Same goes for this thing:

+ if((pci_probe & PCI_PROBE_CONF1) &&
+ e820_all_mapped(cfg->address,
+ cfg->address + size - 1,
+ E820_RESERVED))
+ printk(KERN_NOTICE "PCI: MCFG area at %Lx reserved in E820\n",
+ cfg->address);
+ else
+ goto reject;

there really is *not* a highly coveted prize for having the most different indentation in the fewest possible lines of code!


That looks like standard lisp style indenting (yes I realise that C != lisp). At a guess I would say that code was written in emacs (which can be fixed by the necessary changes in your ~/.emacs). Grand parent post should check out these resources, they may help...

http://www.bloomington.in.us/~brutt/emacs-c-dev.html
http://lug.umbc.edu/tutorials/adv-emacs.html

or if you are really gung ho the CC-mode documentation

http://www.chemie.fu-berlin.de/chemnet/use/info/cc-mode/cc-mode_6.html

Matt
-
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/