Fix !CONFIG_SMP warning: arch/x86/kernel/acpi/processor.c: In function â??arch_acpi_processor_init_pdcâ??: arch/x86/kernel/acpi/processor.c:65: warning: unused variable â??cpuâ?? Signed-off-by: Jeff Garzik <[email protected]> --- Ideally this warning should be hidden inside a wrapper or somesuch, to camouflage the unneeded argument in !SMP case. diff --git a/arch/x86/kernel/acpi/processor.c b/arch/x86/kernel/acpi/processor.c index 2ed0a4c..45e262a 100644 --- a/arch/x86/kernel/acpi/processor.c +++ b/arch/x86/kernel/acpi/processor.c @@ -62,7 +62,9 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c) /* Initialize _PDC data based on the CPU vendor */ void arch_acpi_processor_init_pdc(struct acpi_processor *pr) { +#ifdef CONFIG_SMP unsigned int cpu = pr->id; +#endif struct cpuinfo_x86 *c = &cpu_data(cpu); pr->pdc = NULL; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [2.6 patch] x86/kernel/acpi/processor.c: fix SMP=n warning
- From: Adrian Bunk <[email protected]>
- Re: [PATCH 1/12] X86: fix !CONFIG_SMP warning in processor.c
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 1/12] X86: fix !CONFIG_SMP warning in processor.c
- From: Jeremy Fitzhardinge <[email protected]>
- [PATCH 12/12] sound/isa: fix printk format
- From: Jeff Garzik <[email protected]>
- [PATCH 11/12] NET: fix subqueue bugs
- From: Jeff Garzik <[email protected]>
- [PATCH 10/12] mac80211: fix warning created by BIT()
- From: Jeff Garzik <[email protected]>
- [PATCH 9/12] cgroup: kill unused variable
- From: Jeff Garzik <[email protected]>
- [PATCH 8/12] ni5010: kill unused variable
- From: Jeff Garzik <[email protected]>
- [PATCH 7/12] eexpress: fix !SMP unused-var warning
- From: Jeff Garzik <[email protected]>
- [PATCH 6/12] KVM: work around SMP requirement
- From: Jeff Garzik <[email protected]>
- [PATCH 5/12] ISDN/sc: fix longstanding warning
- From: Jeff Garzik <[email protected]>
- [PATCH 4/12] riscom8: fix SMP brokenness
- From: Jeff Garzik <[email protected]>
- [PATCH 3/12] ACPI sbs: fix retval warning
- From: Jeff Garzik <[email protected]>
- [PATCH 2/12] X86: fix nvidia HPET warning
- From: Jeff Garzik <[email protected]>
- [2.6 patch] x86/kernel/acpi/processor.c: fix SMP=n warning
- Prev by Date: Re: [GIT PATCH] final SCSI pieces for the merge window
- Next by Date: [PATCH 2/12] X86: fix nvidia HPET warning
- Previous by thread: [PATCH] Freezer: Do not allow freezing processes to clear TIF_SIGPENDING
- Next by thread: [PATCH 2/12] X86: fix nvidia HPET warning
- Index(es):