Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/raid5-log: Drop extern decorators for function prototypes

extern is not necessary and recommended against when defining prototype
functions in headers. checkpatch.pl complains about these. So remove
them.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Logan Gunthorpe and committed by
Jens Axboe
ed0c6a5f d9544d25

+36 -39
+36 -39
drivers/md/raid5-log.h
··· 2 2 #ifndef _RAID5_LOG_H 3 3 #define _RAID5_LOG_H 4 4 5 - extern int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 6 - extern void r5l_exit_log(struct r5conf *conf); 7 - extern int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh); 8 - extern void r5l_write_stripe_run(struct r5l_log *log); 9 - extern void r5l_flush_stripe_to_raid(struct r5l_log *log); 10 - extern void r5l_stripe_write_finished(struct stripe_head *sh); 11 - extern int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio); 12 - extern void r5l_quiesce(struct r5l_log *log, int quiesce); 13 - extern bool r5l_log_disk_error(struct r5conf *conf); 14 - extern bool r5c_is_writeback(struct r5l_log *log); 15 - extern int 16 - r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 17 - struct stripe_head_state *s, int disks); 18 - extern void 19 - r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 20 - struct stripe_head_state *s); 21 - extern void r5c_release_extra_page(struct stripe_head *sh); 22 - extern void r5c_use_extra_page(struct stripe_head *sh); 23 - extern void r5l_wake_reclaim(struct r5l_log *log, sector_t space); 24 - extern void r5c_handle_cached_data_endio(struct r5conf *conf, 25 - struct stripe_head *sh, int disks); 26 - extern int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh); 27 - extern void r5c_make_stripe_write_out(struct stripe_head *sh); 28 - extern void r5c_flush_cache(struct r5conf *conf, int num); 29 - extern void r5c_check_stripe_cache_usage(struct r5conf *conf); 30 - extern void r5c_check_cached_full_stripe(struct r5conf *conf); 5 + int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 6 + void r5l_exit_log(struct r5conf *conf); 7 + int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh); 8 + void r5l_write_stripe_run(struct r5l_log *log); 9 + void r5l_flush_stripe_to_raid(struct r5l_log *log); 10 + void r5l_stripe_write_finished(struct stripe_head *sh); 11 + int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio); 12 + void r5l_quiesce(struct r5l_log *log, int quiesce); 13 + bool r5l_log_disk_error(struct r5conf *conf); 14 + bool r5c_is_writeback(struct r5l_log *log); 15 + int r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 16 + struct stripe_head_state *s, int disks); 17 + void r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 18 + struct stripe_head_state *s); 19 + void r5c_release_extra_page(struct stripe_head *sh); 20 + void r5c_use_extra_page(struct stripe_head *sh); 21 + void r5l_wake_reclaim(struct r5l_log *log, sector_t space); 22 + void r5c_handle_cached_data_endio(struct r5conf *conf, 23 + struct stripe_head *sh, int disks); 24 + int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh); 25 + void r5c_make_stripe_write_out(struct stripe_head *sh); 26 + void r5c_flush_cache(struct r5conf *conf, int num); 27 + void r5c_check_stripe_cache_usage(struct r5conf *conf); 28 + void r5c_check_cached_full_stripe(struct r5conf *conf); 31 29 extern struct md_sysfs_entry r5c_journal_mode; 32 - extern void r5c_update_on_rdev_error(struct mddev *mddev, 33 - struct md_rdev *rdev); 34 - extern bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect); 35 - extern int r5l_start(struct r5l_log *log); 30 + void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev); 31 + bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect); 32 + int r5l_start(struct r5l_log *log); 36 33 37 - extern struct dma_async_tx_descriptor * 34 + struct dma_async_tx_descriptor * 38 35 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu, 39 36 struct dma_async_tx_descriptor *tx); 40 - extern int ppl_init_log(struct r5conf *conf); 41 - extern void ppl_exit_log(struct r5conf *conf); 42 - extern int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh); 43 - extern void ppl_write_stripe_run(struct r5conf *conf); 44 - extern void ppl_stripe_write_finished(struct stripe_head *sh); 45 - extern int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); 46 - extern void ppl_quiesce(struct r5conf *conf, int quiesce); 47 - extern int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio); 37 + int ppl_init_log(struct r5conf *conf); 38 + void ppl_exit_log(struct r5conf *conf); 39 + int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh); 40 + void ppl_write_stripe_run(struct r5conf *conf); 41 + void ppl_stripe_write_finished(struct stripe_head *sh); 42 + int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); 43 + void ppl_quiesce(struct r5conf *conf, int quiesce); 44 + int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio); 48 45 extern struct md_sysfs_entry ppl_write_hint; 49 46 50 47 static inline bool raid5_has_log(struct r5conf *conf)