platform: Provide stubs for !HAS_IOMEM builds
authorMark Brown <broonie@kernel.org>
Tue, 18 Jul 2023 00:28:43 +0000 (01:28 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jul 2023 14:19:00 +0000 (15:19 +0100)
commita0c74f6c9ea9cebd7a8f38142bf87e7c12c2905d
tree908459d986f6ad7c73bdd987ce5dec2130440663
parentda7c07b1083809888c82522e74370f962fb7685e
platform: Provide stubs for !HAS_IOMEM builds

The various _ioremap_resource functions are not built when
CONFIG_HAS_IOMEM is disabled but no stubs are provided. Given how
widespread IOMEM usage is in drivers and how rare !IOMEM configurations
are in practical use let's just provide some stubs so users will build
without having to add explicit dependencies on IOMEM.

The most likely use case is builds with UML for KUnit testing.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230718-asoc-topology-kunit-enable-v2-2-0ee11e662b92@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/platform_device.h