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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Thursday, March 20, 2008 - 9:30 pm

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, 12:37 am)
[patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Thu Mar 20, 12:39 am)
[patch 2/4] x86: Fix build breakage when PCI is define and ..., Ravikiran G Thirumalai, (Thu Mar 20, 12:41 am)
[patch 3/4] x86: vSMP: Use pvops only if platform has the ..., Ravikiran G Thirumalai, (Thu Mar 20, 12:43 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Yinghai Lu, (Thu Mar 20, 12:44 am)
[patch 4/4] x86: apic_is_clustered_box to indicate unsynch ..., Ravikiran G Thirumalai, (Thu Mar 20, 12:45 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Thu Mar 20, 11:40 am)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate uns ..., Ravikiran G Thirumalai, (Thu Mar 20, 12:02 pm)
Re: [patch 2/4] x86: Fix build breakage when PCI is define ..., Jeremy Fitzhardinge, (Thu Mar 20, 9:30 pm)
Re: [patch 0/4] x86: vSMP updates, Ingo Molnar, (Fri Mar 21, 1:54 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ingo Molnar, (Fri Mar 21, 2:11 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Yinghai Lu, (Fri Mar 21, 2:17 am)
Re: [patch 1/4] x86: vSMP: Fix is_vsmp_box(), Ravikiran G Thirumalai, (Fri Mar 21, 10:59 am)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate uns ..., Ravikiran G Thirumalai, (Fri Mar 21, 11:52 am)
Re: [patch 2/4] x86: Fix build breakage when PCI is define ..., Ravikiran G Thirumalai, (Fri Mar 21, 11:54 am)
Re: [patch 2/4] x86: Fix build breakage when PCI is define ..., Jeremy Fitzhardinge, (Fri Mar 21, 7:19 pm)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate uns ..., Ravikiran G Thirumalai, (Sat Mar 22, 11:59 am)
Re: [patch 4/4] x86: apic_is_clustered_box to indicate uns ..., Ravikiran G Thirumalai, (Mon Mar 24, 2:48 pm)