Messages in this thread Patch in this message | | | Date | Mon, 15 Nov 2004 03:23:55 +0100 | From | Adrian Bunk <> | Subject | [2.6 patch] SCSI psi240i.c: make 4 functions static |
| |
The patch below makes 4 needlessly global functions static.
diffstat output: drivers/scsi/psi240i.c | 8 ++++---- drivers/scsi/psi240i.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm5-full/drivers/scsi/psi240i.h.old 2004-11-13 22:46:35.000000000 +0100 +++ linux-2.6.10-rc1-mm5-full/drivers/scsi/psi240i.h 2004-11-13 23:09:48.000000000 +0100 @@ -309,11 +309,7 @@ #endif // PSI_EIDE_SCSIOP // function prototypes -int Psi240i_Detect (Scsi_Host_Template *tpnt); int Psi240i_Command (Scsi_Cmnd *SCpnt); -int Psi240i_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)); int Psi240i_Abort (Scsi_Cmnd *SCpnt); int Psi240i_Reset (Scsi_Cmnd *SCpnt, unsigned int flags); -int Psi240i_BiosParam (struct scsi_device *sdev, struct block_device *bdev, - sector_t capacity, int geom[]); #endif --- linux-2.6.10-rc1-mm5-full/drivers/scsi/psi240i.c.old 2004-11-13 22:47:12.000000000 +0100 +++ linux-2.6.10-rc1-mm5-full/drivers/scsi/psi240i.c 2004-11-13 22:47:59.000000000 +0100 @@ -390,7 +390,7 @@ * Returns: Status code. * ****************************************************************/ -int Psi240i_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) +static int Psi240i_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) { UCHAR *cdb = (UCHAR *)SCpnt->cmnd; // Pointer to SCSI CDB PADAPTER240I padapter = HOSTDATA (SCpnt->device->host); // Pointer to adapter control structure @@ -509,7 +509,7 @@ * Returns: Nothing. * **************************************************************************/ -void ReadChipMemory (void *pdata, USHORT base, USHORT length, USHORT port) +static void ReadChipMemory (void *pdata, USHORT base, USHORT length, USHORT port) { USHORT z, zz; UCHAR *pd = (UCHAR *)pdata; @@ -538,7 +538,7 @@ * Returns: Number of adapters found. * ****************************************************************/ -int Psi240i_Detect (Scsi_Host_Template *tpnt) +static int Psi240i_Detect (Scsi_Host_Template *tpnt) { int board; int count = 0; @@ -654,7 +654,7 @@ * Returns: zero. * ****************************************************************/ -int Psi240i_BiosParam (struct scsi_device *sdev, struct block_device *dev, +static int Psi240i_BiosParam (struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int geom[]) { POUR_DEVICE pdev; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |