From patchwork Wed Jul 26 14:37:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 126426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp459226vqo; Wed, 26 Jul 2023 07:58:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHmCCRRuoUPRbQEa+RK+bgCCIkI+HbyKTiNsagHTd36QHW3ISdn/pC937jU3Du4t6e1TrVa X-Received: by 2002:a17:906:2012:b0:99b:bd1e:b00 with SMTP id 18-20020a170906201200b0099bbd1e0b00mr1787170ejo.25.1690383507220; Wed, 26 Jul 2023 07:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690383507; cv=none; d=google.com; s=arc-20160816; b=WILfpR5fIvkao+RvOaXYO7NIrH+w5yzd7LdmVYJyYaL08G0rK18jLYUehFUHoA9gzP 7Tpv7TP9/aHQ21V7yUjYLSovj55uT+RkClsGpNYpLh+mmfD+jzYQ+ZXwmxw5mS9mmtgC 6NwZNKTl6zzvjc/e0JoVxMn73r+I+ZCzRi+/uzACsCdaGuUmwzy9QzxDRibE5t2zz2tl b5TmjnQzaP+gvHQdZv9Z9bZ50adcuMNezgRgUDK8N0Lk56czzlGT96qeJg3Ckm3mE92H savgtzTz7EL+IeuBNTCqYiaN3/iRLUhskSo3snh9DnsLibU3nSbpBnOVlrVTob0SL5Ef 3Vpw== 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=7thL9oTG+M9TcVQS0bme9ejVfd5vq66A+hwrHki1Elk=; fh=hUMv+3Nkoxf3e9b00CChd07JQ0NfPQ1K51TtcpdREi0=; b=uPaP69muhTZSTWJ0x4/5efR5RW32ZWMbFjiEvpKod9BJFBPiJQdFxO1BUklZWxcNt7 nNvHTaMkoHLFrNGXJK6C7kicZde9j8RLQMaEQJH8hKC2LOigDNNCevPI01M1LJGX8Esy sTex0ZNQTVZpWtY9p4vbg0aR+cOhAKHoiVsg1C+/3OLUCHkPVcqPu7gnemAeE12eNIVg KtdfyNgOPRtWgvrkIQSXzjJZo5bUjA4bV7i6dIjgQ1ZJ9Lt37j57xXbhzbSs2YXkjbaM e8jjO46wTtZHXehi1+tN426KFd7ZlEfbA87rMtmH8YG245OGdgTVMpLOUxJwrUSA0IyG ysUw== 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 gz24-20020a170906f2d800b00991f3517cbdsi10064451ejb.1.2023.07.26.07.58.02; Wed, 26 Jul 2023 07:58:27 -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 S232971AbjGZOh1 (ORCPT + 99 others); Wed, 26 Jul 2023 10:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjGZOhZ (ORCPT ); Wed, 26 Jul 2023 10:37:25 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D2CCE; Wed, 26 Jul 2023 07:37:24 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R9xKn1Lcsz1GDF3; Wed, 26 Jul 2023 22:36:29 +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:37:22 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH net-next] net: Remove unused declaration dev_restart() Date: Wed, 26 Jul 2023 22:37:15 +0800 Message-ID: <20230726143715.24700-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: dggems701-chm.china.huawei.com (10.3.19.178) 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, 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: 1772495576224747702 X-GMAIL-MSGID: 1772495576224747702 This is not used, so can remove it. Signed-off-by: YueHaibing Reviewed-by: Simon Horman --- include/linux/netdevice.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 11652e464f5d..32a4cdf37dd4 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3130,8 +3130,6 @@ struct net_device *netdev_get_by_name(struct net *net, const char *name, netdevice_tracker *tracker, gfp_t gfp); struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex); struct net_device *dev_get_by_napi_id(unsigned int napi_id); -int dev_restart(struct net_device *dev); - static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,