aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-02-11 12:42:56 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 13:58:13 -0400
commit2134bc72ddc04d412c0c2ce93a9c6f19de6cac35 (patch)
tree13015f5af2490469f875aeb8bc21464ea27db171 /drivers/scsi/sg.c
parentaa6cd29b72a5d8e6e5c8f536bc48693824ebfe09 (diff)
[SCSI] sg: remove unnecessary function declarations
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r--drivers/scsi/sg.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index cdd83cf97100..f493d7fca348 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -101,7 +101,6 @@ static int scatter_elem_sz_prev = SG_SCATTER_SZ;
101#define SG_SECTOR_MSK (SG_SECTOR_SZ - 1) 101#define SG_SECTOR_MSK (SG_SECTOR_SZ - 1)
102 102
103static int sg_add(struct device *, struct class_interface *); 103static int sg_add(struct device *, struct class_interface *);
104static void sg_device_destroy(struct kref *kref);
105static void sg_remove(struct device *, struct class_interface *); 104static void sg_remove(struct device *, struct class_interface *);
106 105
107static DEFINE_IDR(sg_index_idr); 106static DEFINE_IDR(sg_index_idr);
@@ -178,14 +177,11 @@ typedef struct sg_device { /* holds the state of each scsi generic device */
178 struct kref d_ref; 177 struct kref d_ref;
179} Sg_device; 178} Sg_device;
180 179
181static int sg_fasync(int fd, struct file *filp, int mode);
182/* tasklet or soft irq callback */ 180/* tasklet or soft irq callback */
183static void sg_rq_end_io(struct request *rq, int uptodate); 181static void sg_rq_end_io(struct request *rq, int uptodate);
184static int sg_start_req(Sg_request *srp, unsigned char *cmd); 182static int sg_start_req(Sg_request *srp, unsigned char *cmd);
185static void sg_finish_rem_req(Sg_request * srp); 183static void sg_finish_rem_req(Sg_request * srp);
186static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); 184static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
187static int sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp,
188 int tablesize);
189static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, 185static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
190 Sg_request * srp); 186 Sg_request * srp);
191static ssize_t sg_new_write(Sg_fd *sfp, struct file *file, 187static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
@@ -204,12 +200,8 @@ static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id);
204static Sg_request *sg_add_request(Sg_fd * sfp); 200static Sg_request *sg_add_request(Sg_fd * sfp);
205static int sg_remove_request(Sg_fd * sfp, Sg_request * srp); 201static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
206static int sg_res_in_use(Sg_fd * sfp); 202static int sg_res_in_use(Sg_fd * sfp);
207static Sg_device *sg_lookup_dev(int dev);
208static Sg_device *sg_get_dev(int dev); 203static Sg_device *sg_get_dev(int dev);
209static void sg_put_dev(Sg_device *sdp); 204static void sg_put_dev(Sg_device *sdp);
210#ifdef CONFIG_SCSI_PROC_FS
211static int sg_last_dev(void);
212#endif
213 205
214#define SZ_SG_HEADER sizeof(struct sg_header) 206#define SZ_SG_HEADER sizeof(struct sg_header)
215#define SZ_SG_IO_HDR sizeof(sg_io_hdr_t) 207#define SZ_SG_IO_HDR sizeof(sg_io_hdr_t)