Skip to content

Commit 4c207db

Browse files
sparc64: Fix prototype warnings for floppy_64.h
Fix the following warnings: arch/sparc/include/asm/floppy_64.h:200:13: warning: no previous prototype for ‘sparc_floppy_irq’ arch/sparc/include/asm/floppy_64.h:437:6: warning: no previous prototype for ‘sun_pci_fd_dma_callback’ Both sparc_floppy_irq and sun_pci_fd_dma_callback are only used within arch/sparc/include/asm/floppy_64.h that is included only by drivers/block/floppy.c, so declare them static. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent a7ec177 commit 4c207db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/sparc/include/asm/floppy_64.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static void sun_fd_enable_dma(void)
197197
pdma_areasize = pdma_size;
198198
}
199199

200-
irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie)
200+
static irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie)
201201
{
202202
if (likely(doing_pdma)) {
203203
void __iomem *stat = (void __iomem *) fdc_status;
@@ -434,7 +434,8 @@ static int sun_pci_fd_eject(int drive)
434434
return -EINVAL;
435435
}
436436

437-
void sun_pci_fd_dma_callback(struct ebus_dma_info *p, int event, void *cookie)
437+
static void sun_pci_fd_dma_callback(struct ebus_dma_info *p, int event,
438+
void *cookie)
438439
{
439440
floppy_interrupt(0, NULL);
440441
}

0 commit comments

Comments
 (0)