[PATCH][RESEND] Compile warning in arch/i386/kernel/setup.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   I got an "implicit function declaration" warning because check_acpi_pci() depends on CONFIG_ACPI, NOT on CONFIG_X86_IO_APIC.

   The following patch fixes this warning and applies to kernel 2.6.16.16.

Regards,

Stephane.

--- linux-2.6.16.16/arch/i386/kernel/setup.c	2006-05-18 11:34:10.000000000 -0400
+++ linux-2.6.16.16-fixed/arch/i386/kernel/setup.c	2006-05-18 11:51:46.000000000 -0400
@@ -1599,11 +1599,9 @@
 	if (efi_enabled)
 		efi_map_memmap();
 
-#ifdef CONFIG_X86_IO_APIC
+#ifdef CONFIG_ACPI
 	check_acpi_pci();	/* Checks more than just ACPI actually */
-#endif
 
-#ifdef CONFIG_ACPI
 	/*
 	 * Parse the ACPI tables for possible boot-time SMP configuration.
 	 */

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux