Skip to content

Commit bd94fbe

Browse files
thierryredingtsbogend
authored andcommitted
MIPS: Alchemy: Remove bogus static/inline specifiers
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: c707a68 ("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>
1 parent 8f0b4cc commit bd94fbe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/mips/alchemy/common/setup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
9494
return phys_addr;
9595
}
9696

97-
static inline unsigned long io_remap_pfn_range_pfn(unsigned long pfn,
98-
unsigned long size)
97+
unsigned long io_remap_pfn_range_pfn(unsigned long pfn, unsigned long size)
9998
{
10099
phys_addr_t phys_addr = fixup_bigphys_addr(pfn << PAGE_SHIFT, size);
101100

0 commit comments

Comments
 (0)