]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ACPI: OSL: Make a W=1 kernel-doc warning go away
authorQian Cai <cai@lca.pw>
Mon, 3 Jun 2019 20:28:35 +0000 (16:28 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jun 2019 15:21:11 +0000 (17:21 +0200)
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>
drivers/acpi/osl.c
include/acpi/acpi_io.h

index cc7507091dec21653dba5850ea5cbddb3265158f..9c0edf2fc0dd57df77d526e25d3f69dd3b2cd81b 100644 (file)
@@ -301,8 +301,8 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr)
  * During early init (when acpi_permanent_mmap has not been set yet) this
  * routine simply calls __acpi_map_table() to get the job done.
  */
-void __iomem *__ref
-acpi_os_map_iomem(acpi_physical_address phys, acpi_size size)
+void __iomem __ref
+*acpi_os_map_iomem(acpi_physical_address phys, acpi_size size)
 {
        struct acpi_ioremap *map;
        void __iomem *virt;
index d0633fc1fc156eee7432a34481d64483a54964a6..12d8bd333fe741dea6bc476a6b68b18fd49b0731 100644 (file)
@@ -16,8 +16,8 @@ static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
 
 extern bool acpi_permanent_mmap;
 
-void __iomem *__ref
-acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
+void __iomem __ref
+*acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
 void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
 void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);