Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20240710094155.458731-2-andreas@gaisler.com
Signed-off-by: Andreas Larsson <andreas@gaisler.com>

+3 -2
+3 -2
arch/sparc/include/asm/floppy_64.h
··· 197 197 pdma_areasize = pdma_size; 198 198 } 199 199 200 - irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie) 200 + static irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie) 201 201 { 202 202 if (likely(doing_pdma)) { 203 203 void __iomem *stat = (void __iomem *) fdc_status; ··· 434 434 return -EINVAL; 435 435 } 436 436 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) 438 439 { 439 440 floppy_interrupt(0, NULL); 440 441 }