Export acpi_check_resource_conflict
PATCH 6/7 Export acpi_check_resource_conflict
From: Thomas Renninger <[email protected]>
Export acpi_check_resource_conflict(), sometimes drivers already have a struct resource at hand so no need to use the wrappers to build a new one.
Signed-off-by Jean Delvare <[email protected]>
Cc "Mark M. Hoffman" <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Len Brown <[email protected]>
Cc Bjorn Helgaas <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/osl.c | 3 ++- include/linux/acpi.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-)
drivers/acpi/osl.c renamed from drivers/acpi/osl.c~export-acpi_check_resource_conflict +2 -1
@@ -1161,7 +1161,7 @@ __setup("acpi_enforce_resources=", acpi_/* Check for resource conflicts between ACPI OperationRegions and native * drivers */ -static int acpi_check_resource_conflict (struct resource *res) +int acpi_check_resource_conflict (struct resource *res) {struct acpi_res_list *res_list_elem;int ioport;
@@ -1211,6 +1211,7 @@ static int acpi_check_resource_conflict( }return 0 ; } +EXPORT_SYMBOL (acpi_check_resource_conflict);int acpi_check_region (resource_size_t start,resource_size_t n,const char *name)
include/linux/acpi.h renamed from include/linux/acpi.h~export-acpi_check_resource_conflict +8 -0
@@ -25,6 +25,7 @@#ifndef _LINUX_ACPI_H#define _LINUX_ACPI_H +#include <linux/ioport.h> /* for struct resource */ #ifdef CONFIG_ACPI
@@ -223,6 +224,8 @@ extern int pnpacpi_disabled;#define PXM_INVAL (-1)#define NID_INVAL (-1) +int acpi_check_resource_conflict (struct resource *res); +int acpi_check_region (resource_size_t start,resource_size_t n,const char *name); int acpi_check_mem_region(resource_size_t start, resource_size_t n,
@@ -240,6 +243,11 @@ static inline int acpi_boot_table_init(vreturn 0 ; } +static inline int acpi_check_resource_conflict (struct resource *res) +{ +return 0 ; +} +static inline int acpi_check_region (resource_size_t start,resource_size_t n,const char *name) {
_