• Rashika Kheria's avatar
    drivers: block: Mark the function as static in drbd_worker.c · a186e478
    Rashika Kheria authored
    Mark functions drbd_endio_read_sec_final(), drbd_send_barrier(),
    need_to_send_barrier(), dequeue_work_batch(), dequeue_work_item() and
    wait_for_work() as static in drbd/drbd_worker.c because they are not
    used outside this file.
    
    This eliminates the following warnings in drbd/drbd_worker.c:
    drivers/block/drbd/drbd_worker.c:99:6: warning: no previous prototype for ‘drbd_endio_read_sec_final’ [-Wmissing-prototypes]
    drivers/block/drbd/drbd_worker.c:1276:5: warning: no previous prototype for ‘drbd_send_barrier’ [-Wmissing-prototypes]
    drivers/block/drbd/drbd_worker.c:1774:6: warning: no previous prototype for ‘need_to_send_barrier’ [-Wmissing-prototypes]
    drivers/block/drbd/drbd_worker.c:1798:6: warning: no previous prototype for ‘dequeue_work_batch’ [-Wmissing-prototypes]
    drivers/block/drbd/drbd_worker.c:1806:6: warning: no previous prototype for ‘dequeue_work_item’ [-Wmissing-prototypes]
    drivers/block/drbd/drbd_worker.c:1815:6: warning: no previous prototype for ‘wait_for_work’ [-Wmissing-prototypes]
    Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
    Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
    Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
    a186e478
drbd_worker.c 53.5 KB