History

[SCSI] bsg: unexport sg v3 helper functions

blk_fill_sghdr_rq, blk_unmap_sghdr_rq, and blk_complete_sghdr_rq were exported for bsg, however bsg was changed to support only sg v4.

FUJITA Tomonori committed 19 years ago

Commit 41e17031 parent df468822 files · +5 −13Browse files

Unified · Split

2 files
  1. block/scsi_ioctl.c +5 −8
  2. include/linux/blkdev.h +0 −5
block/scsi_ioctl.c+5−8
@@ -214,8 +214,8 @@ int blk_verify_command(unsigned char *cmd, int has_write_perm) · 213 unmodified lines
214214 }
215215 EXPORT_SYMBOL_GPL(blk_verify_command);
216216
217−int blk_fill_sghdr_rq(request_queue_t *q, struct request *rq,
218− struct sg_io_hdr *hdr, int has_write_perm)
217+static int blk_fill_sghdr_rq(request_queue_t *q, struct request *rq,
218+ struct sg_io_hdr *hdr, int has_write_perm)
219219 {
220220 memset(rq->cmd, 0, BLK_MAX_CDB); /* ATAPI hates garbage after CDB */
221221
@@ -238,22 +238,20 @@ int blk_fill_sghdr_rq(request_queue_t *q, struct request *rq, · 16 unmodified lines
238238
239239 return 0;
240240 }
241−EXPORT_SYMBOL_GPL(blk_fill_sghdr_rq);
242241
243242 /*
244243 * unmap a request that was previously mapped to this sg_io_hdr. handles
245244 * both sg and non-sg sg_io_hdr.
246245 */
247−int blk_unmap_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr)
246+static int blk_unmap_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr)
248247 {
249248 blk_rq_unmap_user(rq->bio);
250249 blk_put_request(rq);
251250 return 0;
252251 }
253−EXPORT_SYMBOL_GPL(blk_unmap_sghdr_rq);
254252
255−int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr,
256− struct bio *bio)
253+static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr,
254+ struct bio *bio)
257255 {
258256 int r, ret = 0;
259257
@@ -287,7 +285,6 @@ int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, · 27 unmodified lines
287285
288286 return r;
289287 }
290−EXPORT_SYMBOL_GPL(blk_complete_sghdr_rq);
291288
292289 static int sg_io(struct file *file, request_queue_t *q,
293290 struct gendisk *bd_disk, struct sg_io_hdr *hdr)
include/linux/blkdev.h+0−5
@@ -698,11 +698,6 @@ extern int blk_execute_rq(request_queue_t *, struct gendisk *, · 697 unmodified lines
698698 struct request *, int);
699699 extern void blk_execute_rq_nowait(request_queue_t *, struct gendisk *,
700700 struct request *, int, rq_end_io_fn *);
701−extern int blk_fill_sghdr_rq(request_queue_t *, struct request *,
702− struct sg_io_hdr *, int);
703−extern int blk_unmap_sghdr_rq(struct request *, struct sg_io_hdr *);
704−extern int blk_complete_sghdr_rq(struct request *, struct sg_io_hdr *,
705− struct bio *);
706701 extern int blk_verify_command(unsigned char *, int);
707702
708703 static inline request_queue_t *bdev_get_queue(struct block_device *bdev)