Skip to content

Commit 9387edb

Browse files
AdrianBunkjejb
authored andcommitted
[SCSI] a3000: make 2 functions static
a3000_{detect,release}() can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent e0aae1a commit 9387edb

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎drivers/scsi/a3000.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
static struct Scsi_Host *a3000_host = NULL;
2727

28+
static int a3000_release(struct Scsi_Host *instance);
29+
2830
static irqreturn_t a3000_intr (int irq, void *dummy)
2931
{
3032
unsigned long flags;
@@ -157,7 +159,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
157159
}
158160
}
159161

160-
int __init a3000_detect(struct scsi_host_template *tpnt)
162+
static int __init a3000_detect(struct scsi_host_template *tpnt)
161163
{
162164
wd33c93_regs regs;
163165

@@ -232,7 +234,7 @@ static struct scsi_host_template driver_template = {
232234

233235
#include "scsi_module.c"
234236

235-
int a3000_release(struct Scsi_Host *instance)
237+
static int a3000_release(struct Scsi_Host *instance)
236238
{
237239
wd33c93_release();
238240
DMA(instance)->CNTR = 0;

‎drivers/scsi/a3000.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
#include <linux/types.h>
1313

14-
int a3000_detect(struct scsi_host_template *);
15-
int a3000_release(struct Scsi_Host *);
16-
1714
#ifndef CMD_PER_LUN
1815
#define CMD_PER_LUN 2
1916
#endif

0 commit comments

Comments
 (0)