From patchwork Tue Jun 5 11:38:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137708 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp846656lji; Tue, 5 Jun 2018 04:39:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKo06ZWjD+QoAbJ2f32U+VoLbRbbqaOPe8fsE+3SSPONsXRUzx/Q/MOZvNs+jvT78psNv6E X-Received: by 2002:a63:9a01:: with SMTP id o1-v6mr13946598pge.439.1528198771701; Tue, 05 Jun 2018 04:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528198771; cv=none; d=google.com; s=arc-20160816; b=FLKl6aHfko8WH/LwLCTsVbhkgvFU8cL2Xr3ix5W/fFD7l5CzLQPDl2vbDHYcIjVQbi KEkPldUubwkvN7nO2ERvMQOJfwW1cjg16m5lSklq3uFtnhXSPqdt2X1r/aTtZ+72lTPr v+QS1caedMeK4n293QhfCOtLlxJEj3+1hcm7tmQM5QHCFGQbANAYXV/NjsYqWX6g9sk9 +wKkT15+v8CjbAAjnN7G3FEsOVm1RckEFieBzea1C5Q6JQr+m2TBzgpTZsQdLZ9Syq0x bPDmUtYqVO68j/5n+JggssQoFT8Xtlf3hwG+Zi26oQmKCM/F98qkI3xVAXHNwVlDKrh4 YFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=yotCyHOlDknscICB0ETv4nqNTCpHRMpJHBgS2AJpWvE=; b=EPAsTrVJmnqJnoOPpQhPajDfVjxYL6cTrrRdgk2Pk4E+WI1Z+IcIKFwPKx+rxmwqa8 hIcUHLt3V1tjbz8vf9MdFjNy+Hv5ZaP2moDQhN5xf+/uzmatAquVBZEecR5tO8XAmFG1 bBtw3upMlBVU9P1qFP3qzfB8xSs3/TB01GProQmUqSsJyW4gtv0e3gLzSCoygQCZPoS0 EgfAVCKeywuQVoemEKY54uigDy1SGxbmwBdYN14XW6/TWz892YcuSqN+Yb0+OodyfQt/ OXkEuUFw8iG8hMdeaqIe5ZFX0+OgjmRyz3754AXmUIXSlNtuNSQ/ZRuhCtBIbN7mo4Lx lcPQ== 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 b5-v6si49790687ple.417.2018.06.05.04.39.31; Tue, 05 Jun 2018 04:39:31 -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 S1751866AbeFELj3 (ORCPT + 30 others); Tue, 5 Jun 2018 07:39:29 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:52863 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbeFELj1 (ORCPT ); Tue, 5 Jun 2018 07:39:27 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MXkkl-1fkfAR1ZWp-00WjV0; Tue, 05 Jun 2018 13:39:08 +0200 From: Arnd Bergmann To: Yisen Zhuang , Salil Mehta Cc: Arnd Bergmann , "David S. Miller" , Peng Li , Fuyun Liang , Yunsheng Lin , Jian Shen , Xi Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: hns3: remove unused hclgevf_cfg_func_mta_filter Date: Tue, 5 Jun 2018 13:38:21 +0200 Message-Id: <20180605113904.1193671-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:Iez9VtF5xpSUk0xVaNPN3uwcHsRcB+ASrfN5hZ9WSxgGw5Sg9nm u7+ReGD43u72apA0yhua6H103J0L7Ig7TDyQI5PzjY9xg/PRNByAKJDz36d3TeRF/1fzDc5 mVsK936l/3TYs7vW3qYzJFHVaekiR0UhBFBQCQZl41Kwxg8LR4vmvbpQZ+aZG94TO7fr2/1 k01nIeqWdiMuKNsffTKyA== X-UI-Out-Filterresults: notjunk:1; V01:K0:d3XsoAC7Jw4=:JwCYlinR7duiEHy/lfhUvk D7/3FQrg3YNX48JV8hOFV8nTtinHGEV9X6K4yQuA/k5LWwey2rfj7gSdhztSux514aOXpEuXB 6xvZjzwadvEPPt/k8jLicQaOQFMgfWXGzRPIsV7Usdbh5TKa/T4VSX7p0qk1ej1gng2t/dRKc YhTGOTHfruzVEIUaiy28mkty6DTIlWBFMlHzBx8op1Ua9jNttsUyHT4MFGYe3dHr8XaaIosXk XLZA+FoH3vOeTt9ZJ+qOPhUxgaf1NXaMfRqspv08iVY9DKkNee1UCT+LWHXIjbtuX5TrVYlAj vS8S0V68UNdXy3OKwkVBuy1DVVZhRGk4bN8snhRX+dyz5AHoWK22ZqkHupttX4tag33sWe0X9 8ILmRNg5wY7EW564DhmrhQahPzkMopxf+EpVMsMx4QLaJywn1iQ/Wurrts3VzThdZlvpJ9kG3 KTuGzESArtDN5GASluvypgb8ZWyrIUetQ3lk/9MMlNAJlNADgUWWqqGX5SCVXHMd3RHMdXhf3 UaLhAHCOJaL5AAD+aaIidP9/uJpabkZhgs7je/FskGLt/SSYa2qMYQM4qrMhP0lgxZggV3n6V R4vX8Wj9OB0lh0qEDHy4KVRxQHfwwXgv40Y0rEZmZSUin98RaQ5uPcQ1DvsSF/8gVJiQ+Zcd1 rJCKWv78NtPOAZcigfS3ySICu2sx1Ox62oCMIIJ80WwFTRSoXS2CXkFz/L5NrXMdN2oc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last patch apparently added a complete replacement for this function, but left the old one in place, which now causes a harmless warning: drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:731:12: 'hclgevf_cfg_func_mta_filter' defined but not used I assume it can be removed. Fixes: 3a678b5806e6 ("net: hns3: Optimize the VF's process of updating multicast MAC") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 11 ----------- 1 file changed, 11 deletions(-) -- 2.9.0 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index dd8e8e6718dc..bc8a5760d959 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -728,17 +728,6 @@ static void hclgevf_reset_tqp_stats(struct hnae3_handle *handle) } } -static int hclgevf_cfg_func_mta_filter(struct hnae3_handle *handle, bool en) -{ - struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); - u8 msg[2] = {0}; - - msg[0] = en; - return hclgevf_send_mbx_msg(hdev, HCLGE_MBX_SET_MULTICAST, - HCLGE_MBX_MAC_VLAN_MC_FUNC_MTA_ENABLE, - msg, 1, false, NULL, 0); -} - static int hclgevf_cfg_func_mta_type(struct hclgevf_dev *hdev) { u8 resp_msg = HCLGEVF_MTA_TYPE_SEL_MAX;