]> Git Repo - linux.git/commitdiff
parisc: pci-dma: fix warning unused-function
authorAnders Roxell <[email protected]>
Thu, 26 Nov 2020 13:06:00 +0000 (14:06 +0100)
committerHelge Deller <[email protected]>
Tue, 15 Dec 2020 04:41:11 +0000 (05:41 +0100)
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]>
arch/parisc/kernel/pci-dma.c

index 36610a5c029fc2adf6f0b799644169afe28b4d7f..36a57aa38e87e63f4ba7f986398ce95b50068eac 100644 (file)
@@ -335,7 +335,7 @@ pcxl_free_range(unsigned long vaddr, size_t size)
        dump_resmap();
 }
 
-static int proc_pcxl_dma_show(struct seq_file *m, void *v)
+static int __maybe_unused proc_pcxl_dma_show(struct seq_file *m, void *v)
 {
 #if 0
        u_long i = 0;
This page took 0.051257 seconds and 4 git commands to generate.