login
Header Space

 
 

Re: [git pull] "big box" x86 changes, bootmem/sparsemem

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Yinghai Lu <yinghai.lu@...>, Yinghai Lu <yhlu.kernel@...>, <jbarnes@...>
Date: Saturday, April 26, 2008 - 3:52 pm

On Sat, 26 Apr 2008, Ingo Molnar wrote:

Noticed this when just trying to read the code to see if it looks sensible 
(without looking at any real details).

Code like this is *not* acceptable.

We do proper indentations. Improperly indented code is buggy. It doesn't 
matter if the compiler might generate the same code with or without 
indentation, it's still totally unacceptable.

Having preprocessor conditionals that mix things up is not an excuse, and 
it might be an argument for not doing the conditional that way (ie maybe 
just make sure that when NUMA is not on, nid/next_nid will always be 
different, and in a way that the compiler can perhaps see statically that 
they are different - so that you can have the conditional there even with 
NUMA off, but the compiler will just fold it away?).

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC git pull] "big box" x86 changes, Ingo Molnar, (Sat Apr 26, 2:55 pm)
Re: [RFC git pull] "big box" x86 changes, Andi Kleen, (Sat Apr 26, 6:17 pm)
Re: [RFC git pull] "big box" x86 changes, Yinghai Lu, (Sat Apr 26, 11:14 pm)
Re: [RFC git pull] "big box" x86 changes II, Andi Kleen, (Sun Apr 27, 4:32 am)
Re: [RFC git pull] "big box" x86 changes, Andi Kleen, (Sun Apr 27, 4:30 am)
Re: [RFC git pull] "big box" x86 changes, Linus Torvalds, (Sat Apr 26, 3:12 pm)
[git pull] "big box" x86 changes, PCI, Ingo Molnar, (Sat Apr 26, 5:55 pm)
Re: [git pull] "big box" x86 changes, PCI, Jesse Barnes, (Mon Apr 28, 4:34 pm)
Re: [git pull] "big box" x86 changes, PCI, Yinghai Lu, (Mon Apr 28, 6:53 pm)
Re: [git pull] "big box" x86 changes, PCI, Jesse Barnes, (Sun Apr 27, 12:30 pm)
Re: [git pull] "big box" x86 changes, PCI, Ingo Molnar, (Mon Apr 28, 11:38 am)
[RFC git pull] "big box" x86 changes, GART, Ingo Molnar, (Sat Apr 26, 4:24 pm)
Re: [RFC git pull] "big box" x86 changes, GART, Ingo Molnar, (Sat Apr 26, 4:26 pm)
[git pull] "big box" x86 changes, boot protocol, Ingo Molnar, (Sat Apr 26, 3:54 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Ian Campbell, (Sun Apr 27, 7:21 am)
Re: [git pull] "big box" x86 changes, boot protocol, Ingo Molnar, (Mon Apr 28, 11:27 am)
Re: [git pull] "big box" x86 changes, boot protocol, H. Peter Anvin, (Sun Apr 27, 3:29 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Andrew Morton, (Sat Apr 26, 4:39 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Jeremy Fitzhardinge, (Sat Apr 26, 7:37 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Adrian Bunk, (Sat Apr 26, 5:06 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Linus Torvalds, (Sat Apr 26, 5:11 pm)
Re: [git pull] "big box" x86 changes, boot protocol, Ingo Molnar, (Sat Apr 26, 5:17 pm)
Re: [git pull] "big box" x86 changes, boot protocol, H. Peter Anvin, (Sat Apr 26, 5:10 pm)
[git pull] "big box" x86 changes, bootmem/sparsemem, Ingo Molnar, (Sat Apr 26, 3:41 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem, Johannes Weiner, (Sun Apr 27, 6:48 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem, Johannes Weiner, (Mon Apr 28, 12:58 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem, Johannes Weiner, (Sun Apr 27, 8:19 pm)
[patch] mm: node-setup agnostic free_bootmem(), Ingo Molnar, (Sun Apr 27, 8:40 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Johannes Weiner, (Mon Apr 28, 12:49 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Ingo Molnar, (Tue Apr 29, 10:25 am)
Re: [patch] mm: node-setup agnostic free_bootmem(), Johannes Weiner, (Wed Apr 30, 6:52 am)
Re: [patch] mm: node-setup agnostic free_bootmem(), Yinghai Lu, (Sun Apr 27, 9:48 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Johannes Weiner, (Mon Apr 28, 12:54 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Yinghai Lu, (Mon Apr 28, 3:11 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Yinghai Lu, (Mon Apr 28, 3:55 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Johannes Weiner, (Wed Apr 30, 6:50 am)
Re: [patch] mm: node-setup agnostic free_bootmem(), Yinghai Lu, (Wed Apr 30, 12:22 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Johannes Weiner, (Wed Apr 30, 1:52 pm)
Re: [patch] mm: node-setup agnostic free_bootmem(), Yinghai Lu, (Wed Apr 30, 4:30 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem, Linus Torvalds, (Sat Apr 26, 3:52 pm)
Re: [RFC git pull] "big box" x86 changes, Stefan Richter, (Sat Apr 26, 3:05 pm)
Re: [RFC git pull] "big box" x86 changes, Ingo Molnar, (Sat Apr 26, 3:21 pm)
speck-geostationary