Commit 4833869e authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley

[SCSI] drivers/scsi/aacraid/: make some functions static

This patch makes some needlessly global functions static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 47b5d69c
...@@ -562,10 +562,10 @@ static void setinqstr(int devtype, void *data, int tindex) ...@@ -562,10 +562,10 @@ static void setinqstr(int devtype, void *data, int tindex)
inqstrcpy ("V1.0", str->prl); inqstrcpy ("V1.0", str->prl);
} }
void set_sense(u8 *sense_buf, u8 sense_key, u8 sense_code, static void set_sense(u8 *sense_buf, u8 sense_key, u8 sense_code,
u8 a_sense_code, u8 incorrect_length, u8 a_sense_code, u8 incorrect_length,
u8 bit_pointer, u16 field_pointer, u8 bit_pointer, u16 field_pointer,
u32 residue) u32 residue)
{ {
sense_buf[0] = 0xF0; /* Sense data valid, err code 70h (current error) */ sense_buf[0] = 0xF0; /* Sense data valid, err code 70h (current error) */
sense_buf[1] = 0; /* Segment number, always zero */ sense_buf[1] = 0; /* Segment number, always zero */
...@@ -813,7 +813,7 @@ static void write_callback(void *context, struct fib * fibptr) ...@@ -813,7 +813,7 @@ static void write_callback(void *context, struct fib * fibptr)
aac_io_done(scsicmd); aac_io_done(scsicmd);
} }
int aac_read(struct scsi_cmnd * scsicmd, int cid) static int aac_read(struct scsi_cmnd * scsicmd, int cid)
{ {
u32 lba; u32 lba;
u32 count; u32 count;
......
...@@ -1597,7 +1597,6 @@ int fib_setup(struct aac_dev *dev); ...@@ -1597,7 +1597,6 @@ int fib_setup(struct aac_dev *dev);
void fib_map_free(struct aac_dev *dev); void fib_map_free(struct aac_dev *dev);
void fib_free(struct fib * context); void fib_free(struct fib * context);
void fib_init(struct fib * context); void fib_init(struct fib * context);
void fib_dealloc(struct fib * context);
void aac_printf(struct aac_dev *dev, u32 val); void aac_printf(struct aac_dev *dev, u32 val);
int fib_send(u16 command, struct fib * context, unsigned long size, int priority, int wait, int reply, fib_callback callback, void *ctxt); int fib_send(u16 command, struct fib * context, unsigned long size, int priority, int wait, int reply, fib_callback callback, void *ctxt);
int aac_consumer_get(struct aac_dev * dev, struct aac_queue * q, struct aac_entry **entry); int aac_consumer_get(struct aac_dev * dev, struct aac_queue * q, struct aac_entry **entry);
......
...@@ -405,7 +405,7 @@ static int check_revision(struct aac_dev *dev, void __user *arg) ...@@ -405,7 +405,7 @@ static int check_revision(struct aac_dev *dev, void __user *arg)
* *
*/ */
int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)
{ {
struct fib* srbfib; struct fib* srbfib;
int status; int status;
...@@ -625,7 +625,7 @@ struct aac_pci_info { ...@@ -625,7 +625,7 @@ struct aac_pci_info {
}; };
int aac_get_pci_info(struct aac_dev* dev, void __user *arg) static int aac_get_pci_info(struct aac_dev* dev, void __user *arg)
{ {
struct aac_pci_info pci_info; struct aac_pci_info pci_info;
......
...@@ -204,7 +204,7 @@ int aac_send_shutdown(struct aac_dev * dev) ...@@ -204,7 +204,7 @@ int aac_send_shutdown(struct aac_dev * dev)
* 0 - If there were errors initing. This is a fatal error. * 0 - If there were errors initing. This is a fatal error.
*/ */
int aac_comm_init(struct aac_dev * dev) static int aac_comm_init(struct aac_dev * dev)
{ {
unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2;
unsigned long queuesize = sizeof(struct aac_entry) * TOTAL_QUEUE_ENTRIES; unsigned long queuesize = sizeof(struct aac_entry) * TOTAL_QUEUE_ENTRIES;
......
...@@ -211,7 +211,7 @@ void fib_init(struct fib *fibptr) ...@@ -211,7 +211,7 @@ void fib_init(struct fib *fibptr)
* caller. * caller.
*/ */
void fib_dealloc(struct fib * fibptr) static void fib_dealloc(struct fib * fibptr)
{ {
struct hw_fib *hw_fib = fibptr->hw_fib; struct hw_fib *hw_fib = fibptr->hw_fib;
if(hw_fib->header.StructType != FIB_MAGIC) if(hw_fib->header.StructType != FIB_MAGIC)
......
...@@ -215,7 +215,7 @@ static int aac_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd ...@@ -215,7 +215,7 @@ static int aac_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd
* Returns a static string describing the device in question * Returns a static string describing the device in question
*/ */
const char *aac_info(struct Scsi_Host *shost) static const char *aac_info(struct Scsi_Host *shost)
{ {
struct aac_dev *dev = (struct aac_dev *)shost->hostdata; struct aac_dev *dev = (struct aac_dev *)shost->hostdata;
return aac_drivers[dev->cardtype].name; return aac_drivers[dev->cardtype].name;
......
...@@ -89,7 +89,7 @@ static irqreturn_t aac_sa_intr(int irq, void *dev_id, struct pt_regs *regs) ...@@ -89,7 +89,7 @@ static irqreturn_t aac_sa_intr(int irq, void *dev_id, struct pt_regs *regs)
* Notify the adapter of an event * Notify the adapter of an event
*/ */
void aac_sa_notify_adapter(struct aac_dev *dev, u32 event) static void aac_sa_notify_adapter(struct aac_dev *dev, u32 event)
{ {
switch (event) { switch (event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment