hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/scsi/bfa/bfa_svc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
34 * Copyright (c) 2014- QLogic Corporation.
....@@ -5,15 +6,6 @@
56 * www.qlogic.com
67 *
78 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License (GPL) Version 2 as
11
- * published by the Free Software Foundation
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
179 */
1810
1911 #include "bfad_drv.h"
....@@ -2726,7 +2718,7 @@
27262718 case BFA_FCPORT_SM_DPORTDISABLE:
27272719 case BFA_FCPORT_SM_ENABLE:
27282720 case BFA_FCPORT_SM_START:
2729
- /**
2721
+ /*
27302722 * Ignore event for a port that is ddport
27312723 */
27322724 break;
....@@ -3847,7 +3839,7 @@
38473839 return fcport->topology;
38483840 }
38493841
3850
-/**
3842
+/*
38513843 * Get config topology.
38523844 */
38533845 enum bfa_port_topology
....@@ -4292,7 +4284,7 @@
42924284 bfa_port_set_dportenabled(&bfa->modules.port, BFA_FALSE);
42934285 }
42944286
4295
-void
4287
+static void
42964288 bfa_fcport_ddportenable(struct bfa_s *bfa)
42974289 {
42984290 /*
....@@ -4301,7 +4293,7 @@
43014293 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTENABLE);
43024294 }
43034295
4304
-void
4296
+static void
43054297 bfa_fcport_ddportdisable(struct bfa_s *bfa)
43064298 {
43074299 /*
....@@ -5525,7 +5517,6 @@
55255517 struct bfa_uf_s *uf = &ufm->uf_list[uf_tag];
55265518 struct bfa_uf_buf_s *uf_buf;
55275519 uint8_t *buf;
5528
- struct fchs_s *fchs;
55295520
55305521 uf_buf = (struct bfa_uf_buf_s *)
55315522 bfa_mem_get_dmabuf_kva(ufm, uf_tag, uf->pb_len);
....@@ -5533,8 +5524,6 @@
55335524
55345525 m->frm_len = be16_to_cpu(m->frm_len);
55355526 m->xfr_len = be16_to_cpu(m->xfr_len);
5536
-
5537
- fchs = (struct fchs_s *)uf_buf;
55385527
55395528 list_del(&uf->qe); /* dequeue from posted queue */
55405529
....@@ -6408,7 +6397,7 @@
64086397 dport->test_state = BFA_DPORT_ST_INP;
64096398 bfa_dport_result_start(dport, BFA_DPORT_OPMODE_MANU);
64106399 }
6411
- /* fall thru */
6400
+ fallthrough;
64126401
64136402 case BFA_DPORT_SM_REQFAIL:
64146403 bfa_sm_set_state(dport, bfa_dport_sm_enabled);