]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Convert pci_resource_to_user() to a weak function
authorDenis Efremov <efremov@linux.com>
Mon, 29 Jul 2019 10:13:57 +0000 (13:13 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Aug 2019 20:12:07 +0000 (15:12 -0500)
commit883fe80465c54fa9ebc691979ffaea9455611a04
tree1c987393101430e7ac9241cee61f69c779897fe2
parent8ae2f793d21f67d4ab95029bb6873efffa36907b
PCI: Convert pci_resource_to_user() to a weak function

Convert pci_resource_to_user() to a weak function so the existing
architecture-specific implementations will automatically override the
generic one.  This allows us to remove HAVE_ARCH_PCI_RESOURCE_TO_USER
definitions and avoid the conditional compilation for this single function.

Link: https://lore.kernel.org/r/20190729101401.28068-1-efremov@linux.com
Link: https://lore.kernel.org/r/20190729101401.28068-2-efremov@linux.com
Link: https://lore.kernel.org/r/20190729101401.28068-3-efremov@linux.com
Link: https://lore.kernel.org/r/20190729101401.28068-4-efremov@linux.com
Link: https://lore.kernel.org/r/20190729101401.28068-5-efremov@linux.com
Link: https://lore.kernel.org/r/20190729101401.28068-6-efremov@linux.com
Signed-off-by: Denis Efremov <efremov@linux.com>
[bhelgaas: squash into one commit]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS
arch/microblaze/include/asm/pci.h
arch/mips/include/asm/pci.h
arch/powerpc/include/asm/pci.h
arch/sparc/include/asm/pci.h
drivers/pci/pci.c
include/linux/pci.h