kernel/iomem.c: remove __weak ioremap_cache helper
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Jul 2023 14:54:09 +0000 (16:54 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:28 +0000 (13:37 -0700)
commit68af05143fd4b49d4b12eab8d63c91ffbc7c4e5e
treec75176faaab07f7698efc0866d44da1155d112d2
parent1cac4c0760ecd0c33b11b7b5c609264ea6bed5ed
kernel/iomem.c: remove __weak ioremap_cache helper

No portable code calls into this function any more, and on architectures
that don't use or define their own, it causes a warning:

kernel/iomem.c:10:22: warning: no previous prototype for 'ioremap_cache' [-Wmissing-prototypes]
   10 | __weak void __iomem *ioremap_cache(resource_size_t offset, unsigned long size)

Fold it into the only caller that uses it on architectures
without the #define.

Note that the fallback to ioremap is probably still wrong on
those architectures, but this is what it's always done there.

Link: https://lkml.kernel.org/r/20230726145432.1617809-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/iomem.c