]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
logic_pio: Build into a library
authorJohn Garry <john.garry@huawei.com>
Mon, 4 Nov 2019 17:22:19 +0000 (01:22 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 5 Nov 2019 00:48:07 +0000 (08:48 +0800)
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>
lib/Makefile

index c5892807e06fa2c940103947d9272c66bcb4982d..27645143d8bbf86c0ee4b412a06fb92cdf43a286 100644 (file)
@@ -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