diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-18 13:26:44 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-10 00:48:36 -0500 |
commit | 452e20106c422dbbb439bbae69166532dc0eb816 (patch) | |
tree | 592be7a074da8ff72bfbe6e0c0b76170596a1780 /drivers/target | |
parent | 8a0bedd36a5fe5378555bc01846d7bd7a0d38b85 (diff) |
drivers: target: Mark function as static in target_core_iblock.c
Mark function iblock_get_write_cache() as static in target_core_iblock.c
because it is not used outside this file.
This eliminates the following warning in target_core_iblock.c:
drivers/target/target_core_iblock.c:766:6: warning: no previous prototype for ‘iblock_get_write_cache’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_iblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index c87959f12760..15d9121a517e 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -763,7 +763,7 @@ iblock_parse_cdb(struct se_cmd *cmd) | |||
763 | return sbc_parse_cdb(cmd, &iblock_sbc_ops); | 763 | return sbc_parse_cdb(cmd, &iblock_sbc_ops); |
764 | } | 764 | } |
765 | 765 | ||
766 | bool iblock_get_write_cache(struct se_device *dev) | 766 | static bool iblock_get_write_cache(struct se_device *dev) |
767 | { | 767 | { |
768 | struct iblock_dev *ib_dev = IBLOCK_DEV(dev); | 768 | struct iblock_dev *ib_dev = IBLOCK_DEV(dev); |
769 | struct block_device *bd = ib_dev->ibd_bd; | 769 | struct block_device *bd = ib_dev->ibd_bd; |