Re: [PATCH] Prevent IDE boot ops on NUMA system in mainline

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <andi@...>
Cc: <bzolnier@...>, <linux-ide@...>, <linux-kernel@...>
Date: Monday, February 11, 2008 - 1:33 pm

On Mon, 11 Feb 2008, Andi Kleen wrote:

Ok, I applied this, but it causes a *lot* of noise about "unused variable 
'dev'" because pcibus_to_node() is defined to be -1 when you don't do any 
strange NUMA thing (so that "dev->bus" usage thing is never even seen by 
the compiler.

So we should probably make pcibus_to_node() be an inline function for that 
case, or just make that thing be

	return hwif->dev ?
		pcibus_to_node(to_pci_dev(hwif->dev)->bus)
	       :
		-1;

or something. Because now things are really noisy.

Preferences, anybody? Bartlomiej?

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

Messages in current thread:
Re: [PATCH] Prevent IDE boot ops on NUMA system in mainline, Bartlomiej Zolnierkiewicz..., (Mon Feb 11, 3:26 pm)
Re: [PATCH] Prevent IDE boot ops on NUMA system in mainline, Linus Torvalds, (Mon Feb 11, 1:33 pm)