]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: Alchemy: Remove bogus static/inline specifiers
authorThierry Reding <treding@nvidia.com>
Wed, 29 Oct 2025 15:03:16 +0000 (16:03 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Dec 2025 15:09:46 +0000 (16:09 +0100)
The recent io_remap_pfn_range() rework applied the static and inline
specifiers to the implementation of io_remap_pfn_range_pfn() on MIPS
Alchemy, mirroring the same change on other platforms. However, this
function is defined in a source file and that definition causes a
conflict with its declaration. Fix this by dropping the specifiers.

Fixes: c707a68f9468 ("mm: abstract io_remap_pfn_range() based on PFN")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/common/setup.c

index c35b4f809d512332f412978f8a539c94aec0801f..992134a8c23ae0bc3fa8d00e9f9ba0dca4e68b74 100644 (file)
@@ -94,8 +94,7 @@ phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
        return phys_addr;
 }
 
-static inline unsigned long io_remap_pfn_range_pfn(unsigned long pfn,
-               unsigned long size)
+unsigned long io_remap_pfn_range_pfn(unsigned long pfn, unsigned long size)
 {
        phys_addr_t phys_addr = fixup_bigphys_addr(pfn << PAGE_SHIFT, size);