* [2.6 patch] SCSI psi240i.c: make 4 functions static
@ 2004-11-15 2:23 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2004-11-15 2:23 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, linux-kernel
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] SCSI psi240i.c: make 4 functions static
@ 2005-01-25 11:27 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-25 11:27 UTC (permalink / raw)
To: Andrew Morton; +Cc: James.Bottomley, linux-scsi, linux-kernel
This patch makes 4 needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/scsi/psi240i.c | 8 ++++----
drivers/scsi/psi240i.h | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
This patch was already sent on:
- 15 Nov 2004
--- 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-25 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15 2:23 [2.6 patch] SCSI psi240i.c: make 4 functions static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-01-25 11:27 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).