提交 876fba43 编写于 作者: J Jean Delvare 提交者: Len Brown

ACPI: add const to acpi_check_resource_conflict()

acpi_check_resource_conflict() doesn't change the resource
it operates on, so the res parameter can be marked const.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 22763c5c
...@@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); ...@@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup);
/* Check for resource conflicts between ACPI OperationRegions and native /* Check for resource conflicts between ACPI OperationRegions and native
* drivers */ * drivers */
int acpi_check_resource_conflict(struct resource *res) int acpi_check_resource_conflict(const struct resource *res)
{ {
struct acpi_res_list *res_list_elem; struct acpi_res_list *res_list_elem;
int ioport; int ioport;
......
...@@ -240,7 +240,7 @@ extern int pnpacpi_disabled; ...@@ -240,7 +240,7 @@ extern int pnpacpi_disabled;
#define PXM_INVAL (-1) #define PXM_INVAL (-1)
#define NID_INVAL (-1) #define NID_INVAL (-1)
int acpi_check_resource_conflict(struct resource *res); int acpi_check_resource_conflict(const struct resource *res);
int acpi_check_region(resource_size_t start, resource_size_t n, int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name); const char *name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册