diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-07-18 11:04:17 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-24 16:47:56 -0400 |
commit | 6c9a58e84e59a2fc937798b623f72ae4b436547d (patch) | |
tree | e7eb7390118ac1276ed5d8702f0b72367b74cac8 /include/linux/acpi.h | |
parent | 861a6ee8142efbe80b3891fdfb09f74d726c9809 (diff) |
ACPI / boot: Correct address space of __acpi_map_table()
Sparse complains about wrong address space used in __acpi_map_table()
and in __acpi_unmap_table().
arch/x86/kernel/acpi/boot.c:127:29: warning: incorrect type in return expression (different address spaces)
arch/x86/kernel/acpi/boot.c:127:29: expected char *
arch/x86/kernel/acpi/boot.c:127:29: got void [noderef] <asn:2>*
arch/x86/kernel/acpi/boot.c:135:23: warning: incorrect type in argument 1 (different address spaces)
arch/x86/kernel/acpi/boot.c:135:23: expected void [noderef] <asn:2>*addr
arch/x86/kernel/acpi/boot.c:135:23: got char *map
Correct address space to be in align of type of returned and passed
parameter.
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index c749eef1daa1..7443af1d16e7 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -228,8 +228,8 @@ struct acpi_subtable_proc { | |||
228 | int count; | 228 | int count; |
229 | }; | 229 | }; |
230 | 230 | ||
231 | char * __acpi_map_table (unsigned long phys_addr, unsigned long size); | 231 | void __iomem *__acpi_map_table(unsigned long phys, unsigned long size); |
232 | void __acpi_unmap_table(char *map, unsigned long size); | 232 | void __acpi_unmap_table(void __iomem *map, unsigned long size); |
233 | int early_acpi_boot_init(void); | 233 | int early_acpi_boot_init(void); |
234 | int acpi_boot_init (void); | 234 | int acpi_boot_init (void); |
235 | void acpi_boot_table_init (void); | 235 | void acpi_boot_table_init (void); |