[patch 2/2] acpi: define acpi_map_pxm_to_node() for !CONFIG_NUMA

From: Suresh Siddha
Date: Wed Oct 07 2009 - 13:07:03 EST


Alexander Beregalov reported:
drivers/pci/dmar.c: In function 'dmar_parse_one_rhsa':
drivers/pci/dmar.c:360: error: implicit declaration of function
'acpi_map_pxm_to_node'

Reported-by: Alexander Beregalov <a.beregalov@xxxxxxxxx>
Signed-off-by: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>
---
include/acpi/acpi_numa.h | 7 +++++++
1 file changed, 7 insertions(+)

Index: iommu-2.6/include/acpi/acpi_numa.h
===================================================================
--- iommu-2.6.orig/include/acpi/acpi_numa.h
+++ iommu-2.6/include/acpi/acpi_numa.h
@@ -16,5 +16,12 @@ extern int node_to_pxm(int);
extern void __acpi_map_pxm_to_node(int, int);
extern int acpi_map_pxm_to_node(int);

+#else /* !CONFIG_ACPI_NUMA */
+
+static inline int acpi_map_pxm_to_node(int pxm)
+{
+ return -1;
+}
+
#endif /* CONFIG_ACPI_NUMA */
#endif /* __ACP_NUMA_H */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/