fs: Add prototype declaration to appropriate header file include/linux/bio.h
authorRashika Kheria <rashika.kheria@gmail.com>
Sun, 9 Feb 2014 13:00:39 +0000 (18:30 +0530)
committerJens Axboe <axboe@fb.com>
Sun, 9 Feb 2014 20:56:23 +0000 (13:56 -0700)
Add prototype declaration to header file include/linux/bio.h because it
is used by more than one file.

This eliminates the following warning in bio-integrity.c:
fs/bio-integrity.c:214:14: warning: no previous prototype for ‘bio_integrity_tag_size’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/bio.h

index 7065452..d6791bb 100644 (file)
@@ -332,6 +332,7 @@ extern struct bio *bio_clone_fast(struct bio *, gfp_t, struct bio_set *);
 extern struct bio *bio_clone_bioset(struct bio *, gfp_t, struct bio_set *bs);
 
 extern struct bio_set *fs_bio_set;
+unsigned int bio_integrity_tag_size(struct bio *bio);
 
 static inline struct bio *bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs)
 {