mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* build error at include/linux/pci-acpi.h:39
@ 2011-01-16 12:29 Alexander Beregalov
  2011-01-16 19:32 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2011-01-16 12:29 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Len Brown, Rafael J. Wysocki

Hi

kernel is v2.6.37-7733-g1b59be2

In file included from drivers/pci/pcie/aer/aerdrv.c:21:
include/linux/pci-acpi.h:39: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'acpi_find_root_bridge_handle'

CONFIG_ACPI is not set
Perhaps .config is meaningless, it was generated by randconfig.

include/linux/pci-acpi.h:
11 #include <linux/acpi.h>
12
13 #ifdef CONFIG_ACPI
<..>
38 #else
39 static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
40 { return NULL; }
41 #endif

acpi_handle is not defined

include/linux/acpi.h:
30 #ifdef  CONFIG_ACPI
<..>
39 #include <acpi/acpi.h>


Perhaps

diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h
index 479d9bb..09b5835 100644
--- a/include/linux/pci-acpi.h
+++ b/include/linux/pci-acpi.h
@@ -9,6 +9,7 @@
 #define _PCI_ACPI_H_

 #include <linux/acpi.h>
+#include <acpi/acpi.h>

 #ifdef CONFIG_ACPI
 extern acpi_status pci_acpi_add_bus_pm_notifier(struct acpi_device *dev,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: build error at include/linux/pci-acpi.h:39
  2011-01-16 12:29 build error at include/linux/pci-acpi.h:39 Alexander Beregalov
@ 2011-01-16 19:32 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2011-01-16 19:32 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: Linux Kernel Mailing List, Len Brown

On Sunday, January 16, 2011, Alexander Beregalov wrote:
> Hi
> 
> kernel is v2.6.37-7733-g1b59be2
> 
> In file included from drivers/pci/pcie/aer/aerdrv.c:21:
> include/linux/pci-acpi.h:39: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'acpi_find_root_bridge_handle'
> 
> CONFIG_ACPI is not set

A patch for that has been sent already:
https://patchwork.kernel.org/patch/481501/

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-16 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-16 12:29 build error at include/linux/pci-acpi.h:39 Alexander Beregalov
2011-01-16 19:32 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®