diff mbox series

[5/5] spark/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER

Message ID 20190728202213.15550-6-efremov@linux.com (mailing list archive)
State Superseded, archived
Headers show
Series PCI: Convert pci_resource_to_user() to a weak function | expand

Commit Message

Denis Efremov (Oracle) July 28, 2019, 8:22 p.m. UTC
The function pci_resource_to_user() was turned to a weak one. Thus,
spark-specific version will automatically override the generic one
and the HAVE_ARCH_PCI_RESOURCE_TO_USER macro should be removed.

Signed-off-by: Denis Efremov <efremov@linux.com>
---
 arch/sparc/include/asm/pci.h | 2 --
 1 file changed, 2 deletions(-)

Comments

John Paul Adrian Glaubitz July 28, 2019, 8:25 p.m. UTC | #1
Hi Denis!

On 7/28/19 10:22 PM, Denis Efremov wrote:
> The function pci_resource_to_user() was turned to a weak one. Thus,
> spark-specific version will automatically override the generic one
> and the HAVE_ARCH_PCI_RESOURCE_TO_USER macro should be removed.

Typo, it should be "sparc/PCI" in the subject and "sparc-specific"
in the commit description.

Adrian
Denis Efremov (Oracle) July 28, 2019, 9:17 p.m. UTC | #2
Hi!

 > Typo, it should be "sparc/PCI" in the subject and "sparc-specific"
 > in the commit description.

Oh, sorry. I'm from the area of formal methods and mechanically typed 
spark (ada language) instead of sparc. I will fix this in v2 after all 
comments. Thank you!

Denis
diff mbox series

Patch

diff --git a/arch/sparc/include/asm/pci.h b/arch/sparc/include/asm/pci.h
index cfec79bb1831..4deddf430e5d 100644
--- a/arch/sparc/include/asm/pci.h
+++ b/arch/sparc/include/asm/pci.h
@@ -38,8 +38,6 @@  static inline int pci_proc_domain(struct pci_bus *bus)
 #define arch_can_pci_mmap_io()	1
 #define HAVE_ARCH_PCI_GET_UNMAPPED_AREA
 #define get_pci_unmapped_area get_fb_unmapped_area
-
-#define HAVE_ARCH_PCI_RESOURCE_TO_USER
 #endif /* CONFIG_SPARC64 */
 
 #if defined(CONFIG_SPARC64) || defined(CONFIG_LEON_PCI)