From patchwork Wed Jul 26 14:25:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 126424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp455005vqo; Wed, 26 Jul 2023 07:50:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4ZLGW7gyKqkRhZ2eU0QkbyaVhBxm+pXTM/iDXIBHo93Kn8706zNLj1bUjg5xzi4xaumDs X-Received: by 2002:a05:6a21:3e0c:b0:137:48ed:7a38 with SMTP id bk12-20020a056a213e0c00b0013748ed7a38mr2406317pzc.16.1690383003388; Wed, 26 Jul 2023 07:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690383003; cv=none; d=google.com; s=arc-20160816; b=MZg7qS6VTSRCtVK2KYlSSkX8ujCpHsk5iV4JdgeOnIV1QZRZfbf35m75JGBYG3JX6j HGXDeOWlvRw2HDGS7+kbd4u/WyNZuPGXbe/ZU+Trm73NtdtcJA8iyxP0RvAYkVGMLV+o 0j0nAwUy2dE9iWlgLagMsywl6T/j5n08PALAsXjTDaEbVtBz93ULM+pNCpoZs0uGTtIv F5XQVskS4FHcNe/XBTuxTsVMTc2YCP14s0br9KdazFI+eyQYcJq3v3yclB3E2CEOpIpT NKCXWOJpBLrDxOqTPmmBlIxyRWIMWjqYCm07jf2gIgk9VZoabZ/crPedRzexewSlBtWq LtaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=JEk0oN8up0PQzpQFqA6fuCCUtYz9jMjhoWDO+U6ZZ3U=; fh=lrYGSokr2aJC+pw9KVqZnIFnTGMyELmY8zQugRAR4NA=; b=SSUQcLV36xG4f2EUmGuFNUTM7SRsqKG95Og25z5MIFFMNKwjrKUpzPOo3bf9ViIMzQ kscW3+roKLUouKY9t89JvtKbuQ3UMmFLNW4WRL1GWqABv35ye+/IPiVY2BuW+7eGjPPV z9iIECnmd2M8RKOsz8InF5A0K4XQtC3GzSFUDYehBjNP6PZlCf+srQ1EFVwLPxP78ua6 Hp9pQ/wWtBJmhcsg0VZ3hcT+/3OKSqyi4zS0UIteorPEUOxCKvgVqliWkFJs6BWfScR6 oo0mjLs1g5YJLc0lJku7gvL3Gxj8QBoTSrHS0OXMNYlAbw2bOJvvvTsXyQ6WNTW2BGkS 4Dqw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a633409000000b00563e904db64si921334pga.385.2023.07.26.07.49.48; Wed, 26 Jul 2023 07:50:03 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233391AbjGZO0i (ORCPT + 99 others); Wed, 26 Jul 2023 10:26:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbjGZO0h (ORCPT ); Wed, 26 Jul 2023 10:26:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2554E196; Wed, 26 Jul 2023 07:26:36 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R9x4T22F7zTkyW; Wed, 26 Jul 2023 22:24:57 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 26 Jul 2023 22:26:31 +0800 From: YueHaibing To: , , , , , , , , CC: , , Subject: [PATCH net-next] batman-adv: Remove unused declarations Date: Wed, 26 Jul 2023 22:25:25 +0800 Message-ID: <20230726142525.29572-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772495048023729231 X-GMAIL-MSGID: 1772495048023729231 Since commit 335fbe0f5d25 ("batman-adv: tvlv - convert tt query packet to use tvlv unicast packets") batadv_recv_tt_query() is not used. And commit 122edaa05940 ("batman-adv: tvlv - convert roaming adv packet to use tvlv unicast packets") left behind batadv_recv_roam_adv(). Signed-off-by: YueHaibing --- net/batman-adv/routing.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/batman-adv/routing.h b/net/batman-adv/routing.h index 5f387786e9a7..afd15b3879f1 100644 --- a/net/batman-adv/routing.h +++ b/net/batman-adv/routing.h @@ -27,10 +27,6 @@ int batadv_recv_frag_packet(struct sk_buff *skb, struct batadv_hard_iface *iface); int batadv_recv_bcast_packet(struct sk_buff *skb, struct batadv_hard_iface *recv_if); -int batadv_recv_tt_query(struct sk_buff *skb, - struct batadv_hard_iface *recv_if); -int batadv_recv_roam_adv(struct sk_buff *skb, - struct batadv_hard_iface *recv_if); int batadv_recv_unicast_tvlv(struct sk_buff *skb, struct batadv_hard_iface *recv_if); int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,