Skip to content

Commit 393815f

Browse files
bjdooks-ctrafaeljw
authored andcommitted
ACPI: OSL: fix __iomem type on return from acpi_os_map_generic_address()
The pointer returned from acpi_os_map_generic_address() is tagged with __iomem, so make the rv it is returned to also of void __iomem * type. Fixes the following sparse warning: drivers/acpi/osl.c:1686:20: warning: incorrect type in assignment (different address spaces) drivers/acpi/osl.c:1686:20: expected void *rv drivers/acpi/osl.c:1686:20: got void [noderef] __iomem * Fixes: 6915564 ("ACPI: OSL: Change the type of acpi_os_map_generic_address() return value") Signed-off-by: Ben Dooks <[email protected]> [ rjw: Subject tweak, added Fixes tag ] Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1f318b9 commit 393815f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/osl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ acpi_status __init acpi_os_initialize(void)
16811681
* Use acpi_os_map_generic_address to pre-map the reset
16821682
* register if it's in system memory.
16831683
*/
1684-
void *rv;
1684+
void __iomem *rv;
16851685

16861686
rv = acpi_os_map_generic_address(&acpi_gbl_FADT.reset_register);
16871687
pr_debug("%s: Reset register mapping %s\n", __func__,

0 commit comments

Comments
 (0)