[PATCH] make bs_null_cmd_submit static to fix dynamic link problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bs_null can not submit command properly as bs_null_cmd_submit function
symbol cannot be resolved during dynamic link because of the missing
of static qualifier.

Signed-off-by: Zhengyu Zhang <freeman.zhang1992@xxxxxxxxx>
---
 usr/bs_null.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr/bs_null.c b/usr/bs_null.c
index d463f18..3cc37af 100644
--- a/usr/bs_null.c
+++ b/usr/bs_null.c
@@ -30,7 +30,7 @@
 
 #define NULL_BS_DEV_SIZE        (1ULL << 40)
 
-int bs_null_cmd_submit(struct scsi_cmd *cmd)
+static int bs_null_cmd_submit(struct scsi_cmd *cmd)
 {
 	scsi_set_result(cmd, SAM_STAT_GOOD);
 	return 0;
-- 
1.8.3.1




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux