[PATCH 4/5] scsi_transport_iscsi: Unexport iscsi_is_flashnode_conn_dev()

2016-03-28 Thread Bart Van Assche
The output of "git grep -nHw iscsi_is_flashnode_conn_dev" shows that this function is only called from inside source file drivers/scsi/scsi_transport_iscsi.c. Hence unexport this function. Signed-off-by: Bart Van Assche --- drivers/scsi/scsi_transport_iscsi.c | 3 +--

[PATCH 5/5] scsi_transport_iscsi: Declare local symbols static

2016-03-28 Thread Bart Van Assche
Avoid that building with W=1 causes gcc to report warnings about symbols that have not been declared. Signed-off-by: Bart Van Assche --- drivers/scsi/scsi_transport_iscsi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 1/5] libiscsi: Unexport iscsi_eh_target_reset()

2016-03-28 Thread Bart Van Assche
Running "git grep -nHw iscsi_eh_target_reset" shows that this function is only called from inside the drivers/scsi/libiscsi.c source file. Hence unexport this function. Signed-off-by: Bart Van Assche --- drivers/scsi/libiscsi.c | 3 +-- 1 file changed, 1

[PATCH 3/5] scsi_transport_iscsi: Remove set-but-not-used variables

2016-03-28 Thread Bart Van Assche
Avoid that building with W=1 causes gcc to report warnings about set-but-not-used variables. Signed-off-by: Bart Van Assche --- drivers/scsi/scsi_transport_iscsi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/scsi_transport_iscsi.c

[PATCH 2/5] libiscsi: Remove set-but-not-used variables

2016-03-28 Thread Bart Van Assche
Avoid that building with W=1 causes gcc to report warnings about set-but-not-used variables. Signed-off-by: Bart Van Assche --- drivers/scsi/libiscsi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/libiscsi.c