| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright(c) 2007 - 2008 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. |
|---|
| 16 | 4 | * |
|---|
| 17 | 5 | * Maintained at www.Open-FCoE.org |
|---|
| 18 | 6 | */ |
|---|
| .. | .. |
|---|
| 313 | 301 | struct fc_lport *lport = fc_disc_lport(disc); |
|---|
| 314 | 302 | unsigned long delay = 0; |
|---|
| 315 | 303 | |
|---|
| 316 | | - FC_DISC_DBG(disc, "Error %ld, retries %d/%d\n", |
|---|
| 317 | | - PTR_ERR(fp), disc->retry_count, |
|---|
| 304 | + FC_DISC_DBG(disc, "Error %d, retries %d/%d\n", |
|---|
| 305 | + PTR_ERR_OR_ZERO(fp), disc->retry_count, |
|---|
| 318 | 306 | FC_DISC_RETRY_LIMIT); |
|---|
| 319 | 307 | |
|---|
| 320 | 308 | if (!fp || PTR_ERR(fp) == -FC_EX_TIMEOUT) { |
|---|
| .. | .. |
|---|
| 349 | 337 | |
|---|
| 350 | 338 | /** |
|---|
| 351 | 339 | * fc_disc_gpn_ft_req() - Send Get Port Names by FC-4 type (GPN_FT) request |
|---|
| 352 | | - * @lport: The discovery context |
|---|
| 340 | + * @disc: The discovery context |
|---|
| 353 | 341 | */ |
|---|
| 354 | 342 | static void fc_disc_gpn_ft_req(struct fc_disc *disc) |
|---|
| 355 | 343 | { |
|---|
| .. | .. |
|---|
| 382 | 370 | |
|---|
| 383 | 371 | /** |
|---|
| 384 | 372 | * fc_disc_gpn_ft_parse() - Parse the body of the dNS GPN_FT response. |
|---|
| 385 | | - * @lport: The local port the GPN_FT was received on |
|---|
| 373 | + * @disc: The discovery context |
|---|
| 386 | 374 | * @buf: The GPN_FT response buffer |
|---|
| 387 | 375 | * @len: The size of response buffer |
|---|
| 388 | 376 | * |
|---|
| .. | .. |
|---|
| 500 | 488 | * fc_disc_gpn_ft_resp() - Handle a response frame from Get Port Names (GPN_FT) |
|---|
| 501 | 489 | * @sp: The sequence that the GPN_FT response was received on |
|---|
| 502 | 490 | * @fp: The GPN_FT response frame |
|---|
| 503 | | - * @lp_arg: The discovery context |
|---|
| 491 | + * @disc_arg: The discovery context |
|---|
| 504 | 492 | * |
|---|
| 505 | 493 | * Locking Note: This function is called without disc mutex held, and |
|---|
| 506 | 494 | * should do all its processing with the mutex held |
|---|