parisc: dma: Add prototype for pcxl_dma_start
authorHelge Deller <deller@gmx.de>
Thu, 10 Aug 2023 17:12:16 +0000 (19:12 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 10 Aug 2023 17:12:16 +0000 (19:12 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/dma.h
arch/parisc/kernel/pci-dma.c
arch/parisc/mm/init.c

index 9e8c101de902c709c46c177fb3572826c7f85b7b..582fb5d1a5d5f64daa233e85828438a4c32a8bc7 100644 (file)
@@ -14,6 +14,8 @@
 #define dma_outb       outb
 #define dma_inb                inb
 
+extern unsigned long pcxl_dma_start;
+
 /*
 ** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up
 ** (or rather not merge) DMAs into manageable chunks.
index 3f6b507970ebc438076de26cd90fa9f029e0a2d7..131d596e018f01a08ae8d788a8fda58e16ef63d7 100644 (file)
@@ -39,7 +39,7 @@ static struct proc_dir_entry * proc_gsc_root __read_mostly = NULL;
 static unsigned long pcxl_used_bytes __read_mostly;
 static unsigned long pcxl_used_pages __read_mostly;
 
-extern unsigned long pcxl_dma_start; /* Start of pcxl dma mapping area */
+unsigned long pcxl_dma_start __ro_after_init; /* pcxl dma mapping area start */
 static DEFINE_SPINLOCK(pcxl_res_lock);
 static char    *pcxl_res_map;
 static int     pcxl_res_hint;
index 389941c7f2098ff4a3e8fe510496b5bc2166f47f..a088c243edeaa40733ead6e9200ef160cf76f6c0 100644 (file)
@@ -523,10 +523,6 @@ void mark_rodata_ro(void)
 void *parisc_vmalloc_start __ro_after_init;
 EXPORT_SYMBOL(parisc_vmalloc_start);
 
-#ifdef CONFIG_PA11
-unsigned long pcxl_dma_start __ro_after_init;
-#endif
-
 void __init mem_init(void)
 {
        /* Do sanity checks on IPC (compat) structures */