From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> Fixes the following sparse warning: drivers/target/target_core_sbc.c:573:1: warning: symbol 'sbc_check_prot' was not declared. Should it be static? Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> --- drivers/target/target_core_sbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 77d7ae2..ec49257 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -569,7 +569,7 @@ sbc_compare_and_write(struct se_cmd *cmd) return TCM_NO_SENSE; } -bool +static bool sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) { if (!dev->dev_attrib.pi_prot_type) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html