login
Header Space

 
 

Re: [patch 2/4] x86: Fix build breakage when PCI is define and PARAVIRT is not

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ravikiran G Thirumalai <kiran@...>
Cc: Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, <linux-kernel@...>, Glauber de Oliveira Costa <gcosta@...>, Andi Kleen <ak@...>, <shai@...>
Date: Friday, March 21, 2008 - 12:30 am

Ravikiran G Thirumalai wrote:

I'm a bit confused by all the config dependencies.  I had assumed that 
VSMP depended on both PCI and PARAVIRT.  Is this not actually true?  You 
can have a VSMP system without either or both of PCI/PARAVIRT?

The structure of the code suggests that at the very least VSMP depends 
on PCI (it never makes sense to enable VSMP on a non-PCI system), and 
therefore a number of your config decisions can just be predicated on VSMP.


Couldn't this be make obj-$(CONFIG_X86_VSMP)?


Rather than doing this, I'd propose putting

#ifndef CONFIG_X86_VSMP
static inline int is_vsmp_box(void)
{
    return 0;
}
#endif

in a header, and then making the definition in vsmp_64.c unconditional 
(or rather, the whole of vsmp_64.o conditional on CONFIG_X86_VSMP).


Similarly with this.


This was almost right, except it should have been in a #ifdef 
CONFIG_X86_VSMP block.

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

Messages in current thread:
[patch 0/4] x86: vSMP updates, Ravikiran G Thirumalai, (Thu Mar 20, 3:37 am)
Re: [patch 0/4] x86: vSMP updates, Ingo Molnar, (Fri Mar 21, 4:54 am)
[patch 4/4] x86: apic_is_clustered_box to indicate unsynched..., Ravikiran G Thirumalai, (Thu Mar 20, 3:45 am)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate unsyn..., Ravikiran G Thirumalai, (Thu Mar 20, 3:02 pm)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate unsyn..., Ravikiran G Thirumalai, (Fri Mar 21, 2:52 pm)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate unsyn..., Ravikiran G Thirumalai, (Sat Mar 22, 2:59 pm)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate unsyn..., Ravikiran G Thirumalai, (Mon Mar 24, 5:48 pm)
[patch 3/4] x86: vSMP: Use pvops only if platform has the ca..., Ravikiran G Thirumalai, (Thu Mar 20, 3:43 am)
[patch 2/4] x86: Fix build breakage when PCI is define and P..., Ravikiran G Thirumalai, (Thu Mar 20, 3:41 am)
Re: [patch 2/4] x86: Fix build breakage when PCI is define a..., Jeremy Fitzhardinge, (Fri Mar 21, 12:30 am)
Re: [patch 2/4] x86: Fix build breakage when PCI is define a..., Ravikiran G Thirumalai, (Fri Mar 21, 2:54 pm)
Re: [patch 2/4] x86: Fix build breakage when PCI is define a..., Jeremy Fitzhardinge, (Fri Mar 21, 10:19 pm)
[patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Thu Mar 20, 3:39 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Yinghai Lu, (Thu Mar 20, 3:44 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Thu Mar 20, 2:40 pm)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ingo Molnar, (Fri Mar 21, 5:11 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Fri Mar 21, 1:59 pm)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Yinghai Lu, (Fri Mar 21, 5:17 am)
speck-geostationary