Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4034974rwi; Sun, 16 Oct 2022 23:59:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/+GVCpOPfgsK7r/Tv2NZlSuHldt1ULBjmBiR1zBVKjOPPjfeuyaRfw/yU8pFtI9+79Jw5 X-Received: by 2002:a17:903:1d0:b0:178:1d5b:faf8 with SMTP id e16-20020a17090301d000b001781d5bfaf8mr10525307plh.9.1665989987316; Sun, 16 Oct 2022 23:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665989987; cv=none; d=google.com; s=arc-20160816; b=jJNSWYfPxx3wFnF0ewrKpGRzenFbaEPMDpSFzLv6hbHXUwagzUJGEHmjqaIJfzMaXS moVCTprT+779aTiTgUFk169WQ552lH+hmz9n4RzlaaJc4Yf9rmgMJyRXaxO4AUf1bss/ WeG1Bxk0MfInTxbEdoAp2TBkZvAKloxHu1+GlqUus4XZp99+C7gMB/6IgACpb23vdbr8 McFM2yya1rM64HmsC4DV35nAz0NIom/tha8/vRbHrz/BLCXIKyHt2yxchWKG+d7FiVLy +h/CfkDWJE/NBUoNTAhyMPpMJj8Mh7o6LN02HrgqO6NUAbhMPhaY9VyMvcg6VmsGkczo uMtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=v2NjfL8vKFIp+RYMSsu/KombmxM79y0wpYBAxMatcPU=; b=N0s0yWCmsugdOJiYIaPlJsj8zvqo2inRRruqCBi/5bY5cacrAto7eSiFEChSO2EoXh LQAk9+hPZUfF79h7Nw8z+892W1ku2p76ezjj6vUdcjVtMSKa/ovfCLv2lo2MdJOXYTXl qUHwxmfFKbrArm9i7xtkcS8l9q/5wqxIP8QwBi2xoFC4HfsJsd7x0ZgARs1BdO42X9Rs DsQxKV+eZGFvPexEznYdfGcyCoyYIZNsCTnrbIHWhmMbUHgWH9KVw7ulilrgnIt+vtSg xbh/ViRhisAUcyno4ZC17JC1i8OxhnCPwnzMAYbUdNimraWp7CNQG+LpWCqyMIoCOMOD +0pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a170902740700b00179f1470b55si10447628pll.419.2022.10.16.23.59.33; Sun, 16 Oct 2022 23:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiJQGva (ORCPT + 99 others); Mon, 17 Oct 2022 02:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiJQGut (ORCPT ); Mon, 17 Oct 2022 02:50:49 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E164D5419E; Sun, 16 Oct 2022 23:50:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0VSIvXR9_1665989362; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSIvXR9_1665989362) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 14:50:44 +0800 From: Jiapeng Chong To: nbd@nbd.name Cc: john@phrozen.org, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] net: ethernet: mediatek: ppe: Remove the unused function mtk_foe_entry_usable() Date: Mon, 17 Oct 2022 14:49:20 +0800 Message-Id: <20221017064920.83732-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function mtk_foe_entry_usable() is defined in the mtk_ppe.c file, but not called elsewhere, so delete this unused function. drivers/net/ethernet/mediatek/mtk_ppe.c:400:20: warning: unused function 'mtk_foe_entry_usable'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2409 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ethernet/mediatek/mtk_ppe.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_ppe.c b/drivers/net/ethernet/mediatek/mtk_ppe.c index ae00e572390d..2d8ca99f2467 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe.c +++ b/drivers/net/ethernet/mediatek/mtk_ppe.c @@ -397,12 +397,6 @@ int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry, return 0; } -static inline bool mtk_foe_entry_usable(struct mtk_foe_entry *entry) -{ - return !(entry->ib1 & MTK_FOE_IB1_STATIC) && - FIELD_GET(MTK_FOE_IB1_STATE, entry->ib1) != MTK_FOE_STATE_BIND; -} - static bool mtk_flow_entry_match(struct mtk_eth *eth, struct mtk_flow_entry *entry, struct mtk_foe_entry *data) -- 2.20.1.7.g153144c