Skip to content

Commit 39b1e77

Browse files
roxellhdeller
authored andcommitted
parisc: pci-dma: fix warning unused-function
When building tinyconfig on parisc the following warnign shows up: /tmp/arch/parisc/kernel/pci-dma.c:338:12: warning: 'proc_pcxl_dma_show' defined but not used [-Wunused-function] static int proc_pcxl_dma_show(struct seq_file *m, void *v) ^~~~~~~~~~~~~~~~~~ Mark the function as __maybe_unused to fix the warning. Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 6ca753a commit 39b1e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/pci-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ pcxl_free_range(unsigned long vaddr, size_t size)
335335
dump_resmap();
336336
}
337337

338-
static int proc_pcxl_dma_show(struct seq_file *m, void *v)
338+
static int __maybe_unused proc_pcxl_dma_show(struct seq_file *m, void *v)
339339
{
340340
#if 0
341341
u_long i = 0;

0 commit comments

Comments
 (0)