diff options
author | Varun Prakash <varun@chelsio.com> | 2016-04-19 14:30:19 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 02:12:28 -0400 |
commit | d2faaefb8d4c63fbc680512b04f9eb57667e2682 (patch) | |
tree | b880718f523d0ff46591e3b26cec1fb77a677c04 /drivers/target | |
parent | b4869ee9525dd6ded57f1898b65035d5529acfa0 (diff) |
iscsi-target: export symbols
export symbols for ISCSI_HW_OFFLOAD
transport drivers.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 25 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_datain_values.c | 1 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_login.c | 3 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_nego.c | 1 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_parameters.c | 1 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_util.c | 2 |
6 files changed, 23 insertions, 10 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 8021223ca288..487d8f37b23a 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -478,17 +478,16 @@ int iscsit_del_np(struct iscsi_np *np) | |||
478 | return 0; | 478 | return 0; |
479 | } | 479 | } |
480 | 480 | ||
481 | static int iscsit_immediate_queue(struct iscsi_conn *, struct iscsi_cmd *, int); | ||
482 | static int iscsit_response_queue(struct iscsi_conn *, struct iscsi_cmd *, int); | ||
483 | static void iscsit_get_rx_pdu(struct iscsi_conn *); | 481 | static void iscsit_get_rx_pdu(struct iscsi_conn *); |
484 | 482 | ||
485 | static int iscsit_queue_rsp(struct iscsi_conn *conn, struct iscsi_cmd *cmd) | 483 | int iscsit_queue_rsp(struct iscsi_conn *conn, struct iscsi_cmd *cmd) |
486 | { | 484 | { |
487 | iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); | 485 | iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); |
488 | return 0; | 486 | return 0; |
489 | } | 487 | } |
488 | EXPORT_SYMBOL(iscsit_queue_rsp); | ||
490 | 489 | ||
491 | static void iscsit_aborted_task(struct iscsi_conn *conn, struct iscsi_cmd *cmd) | 490 | void iscsit_aborted_task(struct iscsi_conn *conn, struct iscsi_cmd *cmd) |
492 | { | 491 | { |
493 | bool scsi_cmd = (cmd->iscsi_opcode == ISCSI_OP_SCSI_CMD); | 492 | bool scsi_cmd = (cmd->iscsi_opcode == ISCSI_OP_SCSI_CMD); |
494 | 493 | ||
@@ -499,6 +498,7 @@ static void iscsit_aborted_task(struct iscsi_conn *conn, struct iscsi_cmd *cmd) | |||
499 | 498 | ||
500 | __iscsit_free_cmd(cmd, scsi_cmd, true); | 499 | __iscsit_free_cmd(cmd, scsi_cmd, true); |
501 | } | 500 | } |
501 | EXPORT_SYMBOL(iscsit_aborted_task); | ||
502 | 502 | ||
503 | static void iscsit_do_crypto_hash_buf(struct ahash_request *, const void *, | 503 | static void iscsit_do_crypto_hash_buf(struct ahash_request *, const void *, |
504 | u32, u32, u8 *, u8 *); | 504 | u32, u32, u8 *, u8 *); |
@@ -799,7 +799,7 @@ static void __exit iscsi_target_cleanup_module(void) | |||
799 | kfree(iscsit_global); | 799 | kfree(iscsit_global); |
800 | } | 800 | } |
801 | 801 | ||
802 | static int iscsit_add_reject( | 802 | int iscsit_add_reject( |
803 | struct iscsi_conn *conn, | 803 | struct iscsi_conn *conn, |
804 | u8 reason, | 804 | u8 reason, |
805 | unsigned char *buf) | 805 | unsigned char *buf) |
@@ -829,6 +829,7 @@ static int iscsit_add_reject( | |||
829 | 829 | ||
830 | return -1; | 830 | return -1; |
831 | } | 831 | } |
832 | EXPORT_SYMBOL(iscsit_add_reject); | ||
832 | 833 | ||
833 | static int iscsit_add_reject_from_cmd( | 834 | static int iscsit_add_reject_from_cmd( |
834 | struct iscsi_cmd *cmd, | 835 | struct iscsi_cmd *cmd, |
@@ -884,6 +885,7 @@ int iscsit_reject_cmd(struct iscsi_cmd *cmd, u8 reason, unsigned char *buf) | |||
884 | { | 885 | { |
885 | return iscsit_add_reject_from_cmd(cmd, reason, false, buf); | 886 | return iscsit_add_reject_from_cmd(cmd, reason, false, buf); |
886 | } | 887 | } |
888 | EXPORT_SYMBOL(iscsit_reject_cmd); | ||
887 | 889 | ||
888 | /* | 890 | /* |
889 | * Map some portion of the allocated scatterlist to an iovec, suitable for | 891 | * Map some portion of the allocated scatterlist to an iovec, suitable for |
@@ -2500,7 +2502,7 @@ iscsit_handle_logout_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd, | |||
2500 | } | 2502 | } |
2501 | EXPORT_SYMBOL(iscsit_handle_logout_cmd); | 2503 | EXPORT_SYMBOL(iscsit_handle_logout_cmd); |
2502 | 2504 | ||
2503 | static int iscsit_handle_snack( | 2505 | int iscsit_handle_snack( |
2504 | struct iscsi_conn *conn, | 2506 | struct iscsi_conn *conn, |
2505 | unsigned char *buf) | 2507 | unsigned char *buf) |
2506 | { | 2508 | { |
@@ -2553,6 +2555,7 @@ static int iscsit_handle_snack( | |||
2553 | 2555 | ||
2554 | return 0; | 2556 | return 0; |
2555 | } | 2557 | } |
2558 | EXPORT_SYMBOL(iscsit_handle_snack); | ||
2556 | 2559 | ||
2557 | static void iscsit_rx_thread_wait_for_tcp(struct iscsi_conn *conn) | 2560 | static void iscsit_rx_thread_wait_for_tcp(struct iscsi_conn *conn) |
2558 | { | 2561 | { |
@@ -2733,7 +2736,7 @@ static void iscsit_tx_thread_wait_for_tcp(struct iscsi_conn *conn) | |||
2733 | } | 2736 | } |
2734 | } | 2737 | } |
2735 | 2738 | ||
2736 | static void | 2739 | void |
2737 | iscsit_build_datain_pdu(struct iscsi_cmd *cmd, struct iscsi_conn *conn, | 2740 | iscsit_build_datain_pdu(struct iscsi_cmd *cmd, struct iscsi_conn *conn, |
2738 | struct iscsi_datain *datain, struct iscsi_data_rsp *hdr, | 2741 | struct iscsi_datain *datain, struct iscsi_data_rsp *hdr, |
2739 | bool set_statsn) | 2742 | bool set_statsn) |
@@ -2777,6 +2780,7 @@ iscsit_build_datain_pdu(struct iscsi_cmd *cmd, struct iscsi_conn *conn, | |||
2777 | cmd->init_task_tag, ntohl(hdr->statsn), ntohl(hdr->datasn), | 2780 | cmd->init_task_tag, ntohl(hdr->statsn), ntohl(hdr->datasn), |
2778 | ntohl(hdr->offset), datain->length, conn->cid); | 2781 | ntohl(hdr->offset), datain->length, conn->cid); |
2779 | } | 2782 | } |
2783 | EXPORT_SYMBOL(iscsit_build_datain_pdu); | ||
2780 | 2784 | ||
2781 | static int iscsit_send_datain(struct iscsi_cmd *cmd, struct iscsi_conn *conn) | 2785 | static int iscsit_send_datain(struct iscsi_cmd *cmd, struct iscsi_conn *conn) |
2782 | { | 2786 | { |
@@ -3153,6 +3157,7 @@ int iscsit_build_r2ts_for_cmd( | |||
3153 | 3157 | ||
3154 | return 0; | 3158 | return 0; |
3155 | } | 3159 | } |
3160 | EXPORT_SYMBOL(iscsit_build_r2ts_for_cmd); | ||
3156 | 3161 | ||
3157 | void iscsit_build_rsp_pdu(struct iscsi_cmd *cmd, struct iscsi_conn *conn, | 3162 | void iscsit_build_rsp_pdu(struct iscsi_cmd *cmd, struct iscsi_conn *conn, |
3158 | bool inc_stat_sn, struct iscsi_scsi_rsp *hdr) | 3163 | bool inc_stat_sn, struct iscsi_scsi_rsp *hdr) |
@@ -3581,7 +3586,7 @@ void iscsit_thread_get_cpumask(struct iscsi_conn *conn) | |||
3581 | cpumask_setall(conn->conn_cpumask); | 3586 | cpumask_setall(conn->conn_cpumask); |
3582 | } | 3587 | } |
3583 | 3588 | ||
3584 | static int | 3589 | int |
3585 | iscsit_immediate_queue(struct iscsi_conn *conn, struct iscsi_cmd *cmd, int state) | 3590 | iscsit_immediate_queue(struct iscsi_conn *conn, struct iscsi_cmd *cmd, int state) |
3586 | { | 3591 | { |
3587 | int ret; | 3592 | int ret; |
@@ -3623,6 +3628,7 @@ iscsit_immediate_queue(struct iscsi_conn *conn, struct iscsi_cmd *cmd, int state | |||
3623 | err: | 3628 | err: |
3624 | return -1; | 3629 | return -1; |
3625 | } | 3630 | } |
3631 | EXPORT_SYMBOL(iscsit_immediate_queue); | ||
3626 | 3632 | ||
3627 | static int | 3633 | static int |
3628 | iscsit_handle_immediate_queue(struct iscsi_conn *conn) | 3634 | iscsit_handle_immediate_queue(struct iscsi_conn *conn) |
@@ -3647,7 +3653,7 @@ iscsit_handle_immediate_queue(struct iscsi_conn *conn) | |||
3647 | return 0; | 3653 | return 0; |
3648 | } | 3654 | } |
3649 | 3655 | ||
3650 | static int | 3656 | int |
3651 | iscsit_response_queue(struct iscsi_conn *conn, struct iscsi_cmd *cmd, int state) | 3657 | iscsit_response_queue(struct iscsi_conn *conn, struct iscsi_cmd *cmd, int state) |
3652 | { | 3658 | { |
3653 | int ret; | 3659 | int ret; |
@@ -3752,6 +3758,7 @@ check_rsp_state: | |||
3752 | err: | 3758 | err: |
3753 | return -1; | 3759 | return -1; |
3754 | } | 3760 | } |
3761 | EXPORT_SYMBOL(iscsit_response_queue); | ||
3755 | 3762 | ||
3756 | static int iscsit_handle_response_queue(struct iscsi_conn *conn) | 3763 | static int iscsit_handle_response_queue(struct iscsi_conn *conn) |
3757 | { | 3764 | { |
diff --git a/drivers/target/iscsi/iscsi_target_datain_values.c b/drivers/target/iscsi/iscsi_target_datain_values.c index fb3b52b124ac..647d4a5dca52 100644 --- a/drivers/target/iscsi/iscsi_target_datain_values.c +++ b/drivers/target/iscsi/iscsi_target_datain_values.c | |||
@@ -524,3 +524,4 @@ struct iscsi_datain_req *iscsit_get_datain_values( | |||
524 | 524 | ||
525 | return NULL; | 525 | return NULL; |
526 | } | 526 | } |
527 | EXPORT_SYMBOL(iscsit_get_datain_values); | ||
diff --git a/drivers/target/iscsi/iscsi_target_login.c b/drivers/target/iscsi/iscsi_target_login.c index 83574eea0be7..a09498f16690 100644 --- a/drivers/target/iscsi/iscsi_target_login.c +++ b/drivers/target/iscsi/iscsi_target_login.c | |||
@@ -258,7 +258,7 @@ static void iscsi_login_set_conn_values( | |||
258 | mutex_unlock(&auth_id_lock); | 258 | mutex_unlock(&auth_id_lock); |
259 | } | 259 | } |
260 | 260 | ||
261 | static __printf(2, 3) int iscsi_change_param_sprintf( | 261 | __printf(2, 3) int iscsi_change_param_sprintf( |
262 | struct iscsi_conn *conn, | 262 | struct iscsi_conn *conn, |
263 | const char *fmt, ...) | 263 | const char *fmt, ...) |
264 | { | 264 | { |
@@ -279,6 +279,7 @@ static __printf(2, 3) int iscsi_change_param_sprintf( | |||
279 | 279 | ||
280 | return 0; | 280 | return 0; |
281 | } | 281 | } |
282 | EXPORT_SYMBOL(iscsi_change_param_sprintf); | ||
282 | 283 | ||
283 | /* | 284 | /* |
284 | * This is the leading connection of a new session, | 285 | * This is the leading connection of a new session, |
diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c index 9fc9117d0f22..ca061320f5eb 100644 --- a/drivers/target/iscsi/iscsi_target_nego.c +++ b/drivers/target/iscsi/iscsi_target_nego.c | |||
@@ -269,6 +269,7 @@ int iscsi_target_check_login_request( | |||
269 | 269 | ||
270 | return 0; | 270 | return 0; |
271 | } | 271 | } |
272 | EXPORT_SYMBOL(iscsi_target_check_login_request); | ||
272 | 273 | ||
273 | static int iscsi_target_check_first_request( | 274 | static int iscsi_target_check_first_request( |
274 | struct iscsi_conn *conn, | 275 | struct iscsi_conn *conn, |
diff --git a/drivers/target/iscsi/iscsi_target_parameters.c b/drivers/target/iscsi/iscsi_target_parameters.c index 3a1f9a7e6bb6..0efa80bb8962 100644 --- a/drivers/target/iscsi/iscsi_target_parameters.c +++ b/drivers/target/iscsi/iscsi_target_parameters.c | |||
@@ -680,6 +680,7 @@ struct iscsi_param *iscsi_find_param_from_key( | |||
680 | pr_err("Unable to locate key \"%s\".\n", key); | 680 | pr_err("Unable to locate key \"%s\".\n", key); |
681 | return NULL; | 681 | return NULL; |
682 | } | 682 | } |
683 | EXPORT_SYMBOL(iscsi_find_param_from_key); | ||
683 | 684 | ||
684 | int iscsi_extract_key_value(char *textbuf, char **key, char **value) | 685 | int iscsi_extract_key_value(char *textbuf, char **key, char **value) |
685 | { | 686 | { |
diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c index a5330171ebe5..43e176f1048e 100644 --- a/drivers/target/iscsi/iscsi_target_util.c +++ b/drivers/target/iscsi/iscsi_target_util.c | |||
@@ -514,6 +514,7 @@ void iscsit_add_cmd_to_immediate_queue( | |||
514 | 514 | ||
515 | wake_up(&conn->queues_wq); | 515 | wake_up(&conn->queues_wq); |
516 | } | 516 | } |
517 | EXPORT_SYMBOL(iscsit_add_cmd_to_immediate_queue); | ||
517 | 518 | ||
518 | struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsi_conn *conn) | 519 | struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsi_conn *conn) |
519 | { | 520 | { |
@@ -776,6 +777,7 @@ void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown) | |||
776 | break; | 777 | break; |
777 | } | 778 | } |
778 | } | 779 | } |
780 | EXPORT_SYMBOL(iscsit_free_cmd); | ||
779 | 781 | ||
780 | int iscsit_check_session_usage_count(struct iscsi_session *sess) | 782 | int iscsit_check_session_usage_count(struct iscsi_session *sess) |
781 | { | 783 | { |