Skip to contentSkip to conversation

SCSI ips.c: make some code static

PATCH New Adrian Bunk 1 participant 1 message Jan 25, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SCSI ips.c: make some code static

This patch makes some needlessly global code static.

---

 drivers/scsi/ips.c |  244 ++++++++++++++++++++++-----------------------
 drivers/scsi/ips.h |   12 --
 2 files changed, 123 insertions(+), 133 deletions(-)

This patch was already sent on:
- 15 Nov 2004
- 21 Dec 2004
- 8 Jan 2005

drivers/scsi/ips.h renamed from drivers/scsi/ips.h.old +2 -10
@@ -53,14 +53,6 @@
    #include <asm/uaccess.h>
    #include <asm/io.h>
 
-   /* Prototypes */
-   extern int ips_detect(Scsi_Host_Template *);
-   extern int ips_release(struct Scsi_Host *);
-   extern int ips_eh_abort(Scsi_Cmnd *);
-   extern int ips_eh_reset(Scsi_Cmnd *);
-   extern int ips_queue(Scsi_Cmnd *, void (*) (Scsi_Cmnd *));
-   extern const char * ips_info(struct Scsi_Host *);
-
    /*
     * Some handy macros
     */
@@ -457,10 +449,10 @@
    static void ips_select_queue_depth(struct Scsi_Host *, Scsi_Device *);
    static int ips_biosparam(Disk *disk, kdev_t dev, int geom[]);
 #else
-   int ips_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int);
+   static int ips_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int);
    static int ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
 		sector_t capacity, int geom[]);
-   int ips_slave_configure(Scsi_Device *SDptr);
+   static int ips_slave_configure(Scsi_Device *SDptr);
 #endif
 
 /*
drivers/scsi/ips.c renamed from drivers/scsi/ips.c.old +121 -123

316 lines not on this page · raw message