diff options
author | Qian Cai <cai@lca.pw> | 2019-06-03 16:28:35 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-06-04 11:21:11 -0400 |
commit | 9fe51603d953419b8da74f455269eca8e6b84228 (patch) | |
tree | 79e916b396923be9b4752e12b46c841f2b6b8b1b | |
parent | f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a (diff) |
ACPI: OSL: Make a W=1 kernel-doc warning go away
It appears that kernel-doc does not understand the return type *__ref,
drivers/acpi/osl.c:306: warning: cannot understand function prototype:
'void __iomem *__ref acpi_os_map_iomem(acpi_physical_address phys,
acpi_size size)
Signed-off-by: Qian Cai <cai@lca.pw>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/osl.c | 4 | ||||
-rw-r--r-- | include/acpi/acpi_io.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index cc7507091dec..9c0edf2fc0dd 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -301,8 +301,8 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr) | |||
301 | * During early init (when acpi_permanent_mmap has not been set yet) this | 301 | * During early init (when acpi_permanent_mmap has not been set yet) this |
302 | * routine simply calls __acpi_map_table() to get the job done. | 302 | * routine simply calls __acpi_map_table() to get the job done. |
303 | */ | 303 | */ |
304 | void __iomem *__ref | 304 | void __iomem __ref |
305 | acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) | 305 | *acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) |
306 | { | 306 | { |
307 | struct acpi_ioremap *map; | 307 | struct acpi_ioremap *map; |
308 | void __iomem *virt; | 308 | void __iomem *virt; |
diff --git a/include/acpi/acpi_io.h b/include/acpi/acpi_io.h index d0633fc1fc15..12d8bd333fe7 100644 --- a/include/acpi/acpi_io.h +++ b/include/acpi/acpi_io.h | |||
@@ -16,8 +16,8 @@ static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, | |||
16 | 16 | ||
17 | extern bool acpi_permanent_mmap; | 17 | extern bool acpi_permanent_mmap; |
18 | 18 | ||
19 | void __iomem *__ref | 19 | void __iomem __ref |
20 | acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); | 20 | *acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); |
21 | void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size); | 21 | void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size); |
22 | void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); | 22 | void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); |
23 | 23 | ||