forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/scsi/libfc/fc_lport.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright(c) 2007 Intel Corporation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc.,
15
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164 *
175 * Maintained at www.Open-FCoE.org
186 */
....@@ -417,7 +405,7 @@
417405 /**
418406 * fc_lport_recv_echo_req() - Handle received ECHO request
419407 * @lport: The local port receiving the ECHO
420
- * @fp: ECHO request frame
408
+ * @in_fp: ECHO request frame
421409 */
422410 static void fc_lport_recv_echo_req(struct fc_lport *lport,
423411 struct fc_frame *in_fp)
....@@ -452,7 +440,7 @@
452440 /**
453441 * fc_lport_recv_rnid_req() - Handle received Request Node ID data request
454442 * @lport: The local port receiving the RNID
455
- * @fp: The RNID request frame
443
+ * @in_fp: The RNID request frame
456444 */
457445 static void fc_lport_recv_rnid_req(struct fc_lport *lport,
458446 struct fc_frame *in_fp)
....@@ -1337,6 +1325,7 @@
13371325 /**
13381326 * fc_lport_enter_ns() - register some object with the name server
13391327 * @lport: Fibre Channel local port to register
1328
+ * @state: Local port state
13401329 */
13411330 static void fc_lport_enter_ns(struct fc_lport *lport, enum fc_lport_state state)
13421331 {
....@@ -1435,6 +1424,7 @@
14351424 /**
14361425 * fc_lport_enter_ms() - management server commands
14371426 * @lport: Fibre Channel local port to register
1427
+ * @state: Local port state
14381428 */
14391429 static void fc_lport_enter_ms(struct fc_lport *lport, enum fc_lport_state state)
14401430 {
....@@ -1588,7 +1578,7 @@
15881578 case LPORT_ST_DPRT:
15891579 FC_LPORT_DBG(lport, "Skipping lport state %s to SCR\n",
15901580 fc_lport_state(lport));
1591
- /* fall thru */
1581
+ fallthrough;
15921582 case LPORT_ST_SCR:
15931583 fc_lport_enter_scr(lport);
15941584 break;
....@@ -1944,6 +1934,7 @@
19441934 * @job: The BSG Passthrough job
19451935 * @lport: The local port sending the request
19461936 * @did: The destination port id
1937
+ * @tov: The timeout period (in ms)
19471938 */
19481939 static int fc_lport_els_request(struct bsg_job *job,
19491940 struct fc_lport *lport,