Skip to content

Commit

Permalink
parisc: dma: Add prototype for pcxl_dma_start
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
hdeller committed Aug 10, 2023
1 parent 388d5bd commit a4c59c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions arch/parisc/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion arch/parisc/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions arch/parisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a4c59c9

Please sign in to comment.