Skip to content

PCI: Convert pci_resource_to_user() to a weak function

Denis Efremov linux-mips linux-pci linuxppc-dev lkml sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

1. Removed __weak from pci_resource_to_user() declaration
2. Fixed typo s/spark/sparc/g

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PCI: Convert pci_resource_to_user to a weak functiondrivers/pci/pci.c include/linux/pci.h+8 -120 replies
2/5microblaze/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USERarch/microblaze/include/asm/pci.h+0 -20 replies
3/5mips/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USERarch/mips/include/asm/pci.h+0 -11 reply
4/5powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USERarch/powerpc/include/asm/pci.h+0 -20 replies
5/5sparc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USERarch/sparc/include/asm/pci.h+0 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchPaul Burton
1/5
2/5
3/5A-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] PCI: Convert pci_resource_to_user() to a weak function

Architectures currently define HAVE_ARCH_PCI_RESOURCE_TO_USER if they want to provide their own pci_resource_to_user() implementation. This could be simplified if we make the generic version a weak function. Thus, architecture specific versions will automatically override the generic one.

Changes in v2:
1. Removed __weak from pci_resource_to_user() declaration
2. Fixed typo s/spark/sparc/g

Denis Efremov (5):
PCI: Convert pci_resource_to_user to a weak function microblaze/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER mips/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER sparc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER

 arch/microblaze/include/asm/pci.h |  2 --
 arch/mips/include/asm/pci.h       |  1 -
 arch/powerpc/include/asm/pci.h    |  2 --
 arch/sparc/include/asm/pci.h      |  2 --
 drivers/pci/pci.c                 |  8 ++++++++
 include/linux/pci.h               | 12 ------------
 6 files changed, 8 insertions(+), 19 deletions(-)
Signature · 1 line
2.21.0