diff options
author | Bart Van Assche <bvanassche@acm.org> | 2014-01-13 06:39:35 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-21 13:46:17 -0500 |
commit | 0c7f82189d2249153ee302fe4d02de15f165d220 (patch) | |
tree | 97ccc0501697498bb6fd8388c46df5295aa4071e /include/scsi | |
parent | 31b90347dc9fb7649a8dc3ffefa52771ac30e10b (diff) |
scsi_transport_srp: Fix kernel-doc warnings
The following command has been used to verify that the kernel-doc
tool no longer complains about undocumented fields:
scripts/kernel-doc -html drivers/scsi/scsi_transport_srp.c \
include/scsi/scsi_transport_srp.h >srp-transport-doc.html
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Sebastian Riemer <sebastian.riemer@profitbricks.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_transport_srp.h | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h index f24e763fa430..b11da5c1331e 100644 --- a/include/scsi/scsi_transport_srp.h +++ b/include/scsi/scsi_transport_srp.h | |||
@@ -29,10 +29,26 @@ enum srp_rport_state { | |||
29 | }; | 29 | }; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * struct srp_rport | 32 | * struct srp_rport - SRP initiator or target port |
33 | * @lld_data: LLD private data. | 33 | * |
34 | * @mutex: Protects against concurrent rport reconnect / fast_io_fail / | 34 | * Fields that are relevant for SRP initiator and SRP target drivers: |
35 | * dev_loss_tmo activity. | 35 | * @dev: Device associated with this rport. |
36 | * @port_id: 16-byte port identifier. | ||
37 | * @roles: Role of this port - initiator or target. | ||
38 | * | ||
39 | * Fields that are only relevant for SRP initiator drivers: | ||
40 | * @lld_data: LLD private data. | ||
41 | * @mutex: Protects against concurrent rport reconnect / | ||
42 | * fast_io_fail / dev_loss_tmo activity. | ||
43 | * @state: rport state. | ||
44 | * @deleted: Whether or not srp_rport_del() has already been invoked. | ||
45 | * @reconnect_delay: Reconnect delay in seconds. | ||
46 | * @failed_reconnects: Number of failed reconnect attempts. | ||
47 | * @reconnect_work: Work structure used for scheduling reconnect attempts. | ||
48 | * @fast_io_fail_tmo: Fast I/O fail timeout in seconds. | ||
49 | * @dev_loss_tmo: Device loss timeout in seconds. | ||
50 | * @fast_io_fail_work: Work structure used for scheduling fast I/O fail work. | ||
51 | * @dev_loss_work: Work structure used for scheduling device loss work. | ||
36 | */ | 52 | */ |
37 | struct srp_rport { | 53 | struct srp_rport { |
38 | /* for initiator and target drivers */ | 54 | /* for initiator and target drivers */ |
@@ -59,6 +75,8 @@ struct srp_rport { | |||
59 | 75 | ||
60 | /** | 76 | /** |
61 | * struct srp_function_template | 77 | * struct srp_function_template |
78 | * | ||
79 | * Fields that are only relevant for SRP initiator drivers: | ||
62 | * @has_rport_state: Whether or not to create the state, fast_io_fail_tmo and | 80 | * @has_rport_state: Whether or not to create the state, fast_io_fail_tmo and |
63 | * dev_loss_tmo sysfs attribute for an rport. | 81 | * dev_loss_tmo sysfs attribute for an rport. |
64 | * @reset_timer_if_blocked: Whether or srp_timed_out() should reset the command | 82 | * @reset_timer_if_blocked: Whether or srp_timed_out() should reset the command |
@@ -70,6 +88,11 @@ struct srp_rport { | |||
70 | * srp_reconnect_rport(). | 88 | * srp_reconnect_rport(). |
71 | * @terminate_rport_io: Callback function for terminating all outstanding I/O | 89 | * @terminate_rport_io: Callback function for terminating all outstanding I/O |
72 | * requests for an rport. | 90 | * requests for an rport. |
91 | * @rport_delete: Callback function that deletes an rport. | ||
92 | * | ||
93 | * Fields that are only relevant for SRP target drivers: | ||
94 | * @tsk_mgmt_response: Callback function for sending a task management response. | ||
95 | * @it_nexus_response: Callback function for processing an IT nexus response. | ||
73 | */ | 96 | */ |
74 | struct srp_function_template { | 97 | struct srp_function_template { |
75 | /* for initiator drivers */ | 98 | /* for initiator drivers */ |
@@ -104,6 +127,7 @@ extern void srp_stop_rport_timers(struct srp_rport *rport); | |||
104 | 127 | ||
105 | /** | 128 | /** |
106 | * srp_chkready() - evaluate the transport layer state before I/O | 129 | * srp_chkready() - evaluate the transport layer state before I/O |
130 | * @rport: SRP target port pointer. | ||
107 | * | 131 | * |
108 | * Returns a SCSI result code that can be returned by the LLD queuecommand() | 132 | * Returns a SCSI result code that can be returned by the LLD queuecommand() |
109 | * implementation. The role of this function is similar to that of | 133 | * implementation. The role of this function is similar to that of |