Re: mm snapshot broken-out-2007-06-20-10-12.tar.gz uploaded

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, June 25, 2007 - 9:12 pm

On Wed, 20 Jun 2007 21:14:22 -0400 "Bob Picco" <bob.picco@hp.com> wrote:


(reads code and config files, works out that the breakage must have been ia64)

Really the header file should take care of this, and conditional inclusion
is evil.

So let's give this a whizz?


From: Andrew Morton <akpm@linux-foundation.org>

drivers/acpi/bus.c: In function `acpi_init':
drivers/acpi/bus.c:760: warning: implicit declaration of function `pci_mmcfg_late_init'

Fix this by always including pci.h in drivers/acpi/bus.c.

Also remove unneeded inclusion of asm/pci.h (linux/pci.h did that)

Cc: Andi Kleen <ak@suse.de>
Cc: Greg KH <greg@kroah.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Rajesh Shah <rajesh.shah@intel.com>
Cc: Robert Hancock <hancockr@shaw.ca>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/acpi/bus.c |    3 +--
 linux/pci.h        |    0 
 2 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/acpi/bus.c~mmconfig-validate-against-acpi-motherboard-resources-fix-2-3 drivers/acpi/bus.c
--- a/drivers/acpi/bus.c~mmconfig-validate-against-acpi-motherboard-resources-fix-2-3
+++ a/drivers/acpi/bus.c
@@ -34,9 +34,8 @@
 #include <linux/proc_fs.h>
 #ifdef CONFIG_X86
 #include <asm/mpspec.h>
-#include <linux/pci.h>
-#include <asm/pci.h>
 #endif
+#include <linux/pci.h>
 #include <acpi/acpi_bus.h>
 #include <acpi/acpi_drivers.h>
 
_

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

Messages in current thread:
[PATCH] fs/quota.c build fix (Re: mm snapshot broken-out-2 ..., Michal Piotrowski, (Wed Jun 20, 11:45 am)
Re: mm snapshot broken-out-2007-06-20-10-12.tar.gz uploaded, Jeremy Fitzhardinge, (Wed Jun 20, 7:55 pm)
Re: mm snapshot broken-out-2007-06-20-10-12.tar.gz uploaded, Jeremy Fitzhardinge, (Wed Jun 20, 8:33 pm)
Re: mm snapshot broken-out-2007-06-20-10-12.tar.gz uploaded, Andrew Morton, (Mon Jun 25, 9:12 pm)