Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp724937imm; Thu, 13 Sep 2018 06:52:49 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbj/EuHlgs94L/raf9j2rS4cvmiO22fs8qTa4qd40ZpVKArE8F53hQfqZ83g0DiTEWBHTdi X-Received: by 2002:a63:170b:: with SMTP id x11-v6mr7127968pgl.364.1536846769220; Thu, 13 Sep 2018 06:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846769; cv=none; d=google.com; s=arc-20160816; b=aaQGNQNQP5Q/Zsi+XcoZK9YSsz+PDEGVQ7K3A79ZDh94XplRI1WoRRytCC2XS6sYrx EVBRlkxy53Q2ai8HtSDbPQljUSdQK3LB9xOreJPDIC4+uaPkof8/3cB6JdidxX7dq+4V uUq0Y1xDf4JZGaqX+3Aaa5Wcno/MXumD2SNt8hsElG0dsemjlFabVuqkxBcRWzN2BfR0 RpkFQEO8ear4lJrdebtC9XFAICQ2MIb3jKBrds/tsf0VZIQ4MtGZWBfolgV4P0F4QBEJ enki7lcJxR9S4xKeP87wPTFAH1h+IV77bVyeELslvylfaViN6HXbmzlHw74cSPKhau/0 C1SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Vs95mBdFkHUnG/zH+wZViWz6ZPcRY6mhLaE+btDebM4=; b=iYYcvSwz3B+bNHn7K15GxcNS6X0iQofVbYFZTl1qGMkWSDUKpHysxmqZ6Hsq9n+BRM 3UjgqUI8uWR6cGDjds3cjOYY95WLmhW0lcm11zkai5PClRjdXYZFqS97J/+XLO+5dRjD EVf9aIL82AhCxQ209Xu6uF59/IIGh3DoewakkklbrmhKinuKap00ju5T/UAMD2u9sA4O 2KeITiidvLa7/TwTpQhkaWkV5XOyz4w39NquJk94As0X2Jvp561UzdL9pepYDyMqbC5g oQcdBacinGODTX/S+AVXoXGdk4INcT34B4R3IB4I00GkpYzuGPCYs5ZRM+cVjhpHqqC7 /aaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7-v6si4051721pfm.288.2018.09.13.06.52.34; Thu, 13 Sep 2018 06:52:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730544AbeIMTAL (ORCPT + 99 others); Thu, 13 Sep 2018 15:00:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33190 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727760AbeIMTAL (ORCPT ); Thu, 13 Sep 2018 15:00:11 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9F5DBCFE; Thu, 13 Sep 2018 13:50:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Chan , "David S. Miller" Subject: [PATCH 4.18 014/197] bnxt_en: Clean up unused functions. Date: Thu, 13 Sep 2018 15:29:23 +0200 Message-Id: <20180913131842.136533505@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Chan [ Upstream commit ad95c27bdb930105f3eea02621bda157caf2862d ] Remove unused bnxt_subtract_ulp_resources(). Change bnxt_get_max_func_irqs() to static since it is only locally used. Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 - drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 15 --------------- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 1 - 4 files changed, 1 insertion(+), 18 deletions(-) --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -5912,7 +5912,7 @@ void bnxt_set_max_func_cp_rings(struct b bp->hw_resc.max_cp_rings = max; } -unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) +static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) { struct bnxt_hw_resc *hw_resc = &bp->hw_resc; --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1469,7 +1469,6 @@ unsigned int bnxt_get_max_func_stat_ctxs void bnxt_set_max_func_stat_ctxs(struct bnxt *bp, unsigned int max); unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp); void bnxt_set_max_func_cp_rings(struct bnxt *bp, unsigned int max); -unsigned int bnxt_get_max_func_irqs(struct bnxt *bp); int bnxt_get_avail_msix(struct bnxt *bp, int num); int bnxt_reserve_rings(struct bnxt *bp); void bnxt_tx_disable(struct bnxt *bp); --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -220,21 +220,6 @@ int bnxt_get_ulp_msix_base(struct bnxt * return 0; } -void bnxt_subtract_ulp_resources(struct bnxt *bp, int ulp_id) -{ - ASSERT_RTNL(); - if (bnxt_ulp_registered(bp->edev, ulp_id)) { - struct bnxt_en_dev *edev = bp->edev; - unsigned int msix_req, max; - - msix_req = edev->ulp_tbl[ulp_id].msix_requested; - max = bnxt_get_max_func_cp_rings(bp); - bnxt_set_max_func_cp_rings(bp, max - msix_req); - max = bnxt_get_max_func_stat_ctxs(bp); - bnxt_set_max_func_stat_ctxs(bp, max - 1); - } -} - static int bnxt_send_msg(struct bnxt_en_dev *edev, int ulp_id, struct bnxt_fw_msg *fw_msg) { --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h @@ -90,7 +90,6 @@ static inline bool bnxt_ulp_registered(s int bnxt_get_ulp_msix_num(struct bnxt *bp); int bnxt_get_ulp_msix_base(struct bnxt *bp); -void bnxt_subtract_ulp_resources(struct bnxt *bp, int ulp_id); void bnxt_ulp_stop(struct bnxt *bp); void bnxt_ulp_start(struct bnxt *bp); void bnxt_ulp_sriov_cfg(struct bnxt *bp, int num_vfs);