dmar: coding style cleanup for dmar_parse_one_rhsa()
Subsystems (3)
PATCH 1/2 dmar: coding style cleanup for dmar_parse_one_rhsa()
Reported-by Alexander Beregalov <[email protected]>
Signed-off-by Suresh Siddha <[email protected]>
--- drivers/pci/dmar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/pci/dmar.c +3 -2
@@ -362,8 +362,9 @@ dmar_parse_one_rhsa(struct acpi_dmar_heaif (!node_online (node)) node =-1 ; drhd->iommu->node = node; -return 0 ; - } + +return 0 ; + }return -ENODEV ; }
PATCH 2/2 acpi: define acpi_map_pxm_to_node() for !CONFIG_NUMA
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 <[email protected]>
Signed-off-by Suresh Siddha <[email protected]>
--- include/acpi/acpi_numa.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/acpi/acpi_numa.h +7 -0
@@ -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 */