From 26d3144fbf22185c75b10c30988ca33aa8842837 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 9 Feb 2012 16:55:30 +0100 Subject: [PATCH] cleanup process_usb_op() / process_scsi_op() declarations Commit 1e749c85 removed the definition of process_usb_op(); let's remove the declaration too. The same commit added process_scsi_op(). The function has no declaration that is also not a definition, and its only call site is in the same file as the definition. Give the function internal linkage. Build tested. Signed-off-by: Laszlo Ersek --- src/block.c | 2 +- src/usb-msc.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/block.c b/src/block.c index eeebd83..ccf4ee6 100644 --- a/src/block.c +++ b/src/block.c @@ -276,7 +276,7 @@ map_floppy_drive(struct drive_s *drive_g) * 16bit calling interface ****************************************************************/ -int +static int process_scsi_op(struct disk_op_s *op) { if (!CONFIG_USB_MSC) diff --git a/src/usb-msc.h b/src/usb-msc.h index a8686a3..12d749c 100644 --- a/src/usb-msc.h +++ b/src/usb-msc.h @@ -8,7 +8,6 @@ struct usb_interface_descriptor; struct usb_pipe; int usb_msc_init(struct usb_pipe *pipe , struct usb_interface_descriptor *iface, int imax); -int process_usb_op(struct disk_op_s *op); /**************************************************************** -- 2.39.5