Skip to content

Commit 0785b9d

Browse files
sfrothwellDavid S. Miller
authored andcommitted
[SPARC]: Mark sparc and sparc64 as not having virt_to_bus
Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d762acd commit 0785b9d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

arch/sparc/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ config GENERIC_ISA_DMA
2121
bool
2222
default y
2323

24+
config ARCH_NO_VIRT_TO_BUS
25+
def_bool y
26+
2427
source "init/Kconfig"
2528

2629
menu "General machine setup"

arch/sparc64/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ config AUDIT_ARCH
6262
bool
6363
default y
6464

65+
config ARCH_NO_VIRT_TO_BUS
66+
def_bool y
67+
6568
choice
6669
prompt "Kernel page size"
6770
default SPARC64_PAGE_SIZE_8KB

include/asm-sparc64/io.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
#define __SLOW_DOWN_IO do { } while (0)
1515
#define SLOW_DOWN_IO do { } while (0)
1616

17-
extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr);
18-
#define virt_to_bus virt_to_bus_not_defined_use_pci_map
19-
extern unsigned long bus_to_virt_not_defined_use_pci_map(volatile void *addr);
20-
#define bus_to_virt bus_to_virt_not_defined_use_pci_map
21-
2217
/* BIO layer definitions. */
2318
extern unsigned long kern_base, kern_size;
2419
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)

0 commit comments

Comments
 (0)