Skip to content

Commit 8f00d28

Browse files
sravnborgandreas-gaisler
authored andcommitted
sparc64: Fix prototype warning for dma_4v_iotsb_bind
Fix the following warning: sparc/kernel/pci_sun4v.c:259:15: warning: no previous prototype for ‘dma_4v_iotsb_bind’ The function dma_4v_iotsb_bind is not used outside the file, so declare it static. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent a51b8c8 commit 8f00d28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/sparc/kernel/pci_sun4v.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ static void *dma_4v_alloc_coherent(struct device *dev, size_t size,
256256
return NULL;
257257
}
258258

259-
unsigned long dma_4v_iotsb_bind(unsigned long devhandle,
260-
unsigned long iotsb_num,
261-
struct pci_bus *bus_dev)
259+
static unsigned long dma_4v_iotsb_bind(unsigned long devhandle,
260+
unsigned long iotsb_num,
261+
struct pci_bus *bus_dev)
262262
{
263263
struct pci_dev *pdev;
264264
unsigned long err;

0 commit comments

Comments
 (0)