summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-11-04 18:22:19 +0100
committerWei Xu <xuwei5@hisilicon.com>2019-11-05 01:48:07 +0100
commitf361c863b3bfa602da37d7a94d90a5dfee0d08fe (patch)
tree339ea5f263a6c63c5d7a992c94d4002cfe3fffae
parentbus: hisi_lpc: Expand build test coverage (diff)
downloadlinux-f361c863b3bfa602da37d7a94d90a5dfee0d08fe.tar.xz
linux-f361c863b3bfa602da37d7a94d90a5dfee0d08fe.zip
logic_pio: Build into a library
Object file logic_pio.o is always built. Ideally the object file should only be built when required. This is tricky, as that would be for archs which define PCI_IOBASE, but no common config option exists for that. For now, continue to always build but at least ensure the symbols are not included in the vmlinux when not referenced. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
-rw-r--r--lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index c5892807e06f..27645143d8bb 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -108,7 +108,7 @@ obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
-obj-y += logic_pio.o
+lib-y += logic_pio.o
obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o