Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1139705pxj; Sat, 15 May 2021 05:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrVJM/KknqKVyv4bs/YMRt6Akkw0NOr28g24rsB0s4mrQPE8mBP0nPSRnuOHcyLmkcw8na X-Received: by 2002:a02:7702:: with SMTP id g2mr5243272jac.111.1621080654140; Sat, 15 May 2021 05:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621080654; cv=none; d=google.com; s=arc-20160816; b=BbbqpNdp3C1SiDjVzED+CuZ0EzZYnjCJjIehGJDkQaSGz32POahGvLCPhn6BJzmOLK 0A2a5zU8sk0iFiqUEgOE6BxrJn+7YEPiC6CCzls4sohVN4MdPPdKY571GUH/ojm4vEPX p0sCZWzzo5GhKVDbDLHtqupVwHNNF6tZ2vKF7EUiVx7VhJCuPi/D/3PUi+ezvxhNB0b4 M9uwjoW63GwdkiFwqhp2HdBB8RDbVnGT9Kb38BMvqbfBlziX4uaBz2lafqTI9e4sxsle 3dbVyYm4FtVqB/V0vEhaDiJye9SADtQ1gc6nffl6X7H/orAnkcY72W0wbnsQOtlEbVd/ gJNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Kh6yruIXFvjG5Xe509Pjo+7trsE34/PEaFBEobnGOrw=; b=BbNNb6brMJbC+iHAeOXDUoXpabzCWb4XBPtTIaIgIAZJHBPdm9tnSsVxftmSfJHOeQ HxcqvUn+SlzCvxx1iLVMO7E2yHiYiMo25jtwUaqPlU7I7VuHy1MDBHs87GM/x+LYd3Qf VgGReZ7RtEQpL3Nw3QSmx5zb7VL/mjGnBsfzYxrzt5u842usjjngXOGJZOG9mzcEem3y Ble325z0lBq/lfsbI2zEdy80wtJneaOfc4KNOgp/3mZYPDTTomqZaW92fVUOh+cPVkv8 XZsjJtmtaguea8tV0ICUStWlUaeTVNMflsANzjCtMW9VFiXJVONVMb9nr1SRi+DvpWGy M62w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si9503876ilo.12.2021.05.15.05.10.40; Sat, 15 May 2021 05:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234979AbhEOK43 (ORCPT + 99 others); Sat, 15 May 2021 06:56:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3536 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231559AbhEOKzp (ORCPT ); Sat, 15 May 2021 06:55:45 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fj2Jh3qWdzsR8h; Sat, 15 May 2021 18:51:48 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Sat, 15 May 2021 18:54:22 +0800 From: Yang Shen To: , CC: , , Yang Shen , Ariel Elior , Sudarsana Kalluru , Subject: [PATCH 05/34] net: broadcom: bnx2x: Fix wrong function name in comments Date: Sat, 15 May 2021 18:53:30 +0800 Message-ID: <1621076039-53986-6-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621076039-53986-1-git-send-email-shenyang39@huawei.com> References: <1621076039-53986-1-git-send-email-shenyang39@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13595: warning: expecting prototype for bnx2x_get_num_none_def_sbs(). Prototype was for bnx2x_get_num_non_def_sbs() instead drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4165: warning: expecting prototype for atomic_add_ifless(). Prototype was for __atomic_add_ifless() instead drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4193: warning: expecting prototype for atomic_dec_ifmoe(). Prototype was for __atomic_dec_ifmoe() instead Cc: Ariel Elior Cc: Sudarsana Kalluru Cc: GR-everest-linux-l2@marvell.com Signed-off-by: Yang Shen --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 281b1c2..2acbc73 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -13586,7 +13586,7 @@ static int bnx2x_set_qm_cid_count(struct bnx2x *bp) } /** - * bnx2x_get_num_none_def_sbs - return the number of none default SBs + * bnx2x_get_num_non_def_sbs - return the number of none default SBs * @pdev: pci device * @cnic_cnt: count * diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c index 6cd1523..542c698 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c @@ -4152,7 +4152,7 @@ void bnx2x_init_mcast_obj(struct bnx2x *bp, /*************************** Credit handling **********************************/ /** - * atomic_add_ifless - add if the result is less than a given value. + * __atomic_add_ifless - add if the result is less than a given value. * * @v: pointer of type atomic_t * @a: the amount to add to v... @@ -4180,7 +4180,7 @@ static inline bool __atomic_add_ifless(atomic_t *v, int a, int u) } /** - * atomic_dec_ifmoe - dec if the result is more or equal than a given value. + * __atomic_dec_ifmoe - dec if the result is more or equal than a given value. * * @v: pointer of type atomic_t * @a: the amount to dec from v... -- 2.7.4