From patchwork Fri Jul 28 13:21:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 127647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp435336vqg; Fri, 28 Jul 2023 06:29:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJbsvXTmKm1Y8X9+oCtpKndWQnhpvHMHsHKCRgCQ8kmHaHCU/qqH3meyqke0DJc4J2F/1O X-Received: by 2002:a05:6a00:1797:b0:663:f82b:c6d9 with SMTP id s23-20020a056a00179700b00663f82bc6d9mr2062573pfg.22.1690550988373; Fri, 28 Jul 2023 06:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690550988; cv=none; d=google.com; s=arc-20160816; b=Yt9uXBYf+JpsIZjAUNpuzR7azAooK1qe0wh1D4sBwgV7i7wtpg8CreVasAFq4YhJrx j6gLogVK7za1XLu1PkYqJ/U3qgmLMBf/AS6cVDftu2X6jpVsbTQNhOzS8/PBUEKv2RbV IpJgsKPW9rsvVwIargaMTp3pP6xUcAnAo0dBE5ELfn3FWccvmld8HHX3Sb3wxdo1F12v /UuRyzJba/lO+kSeNuIQHs+8mu8TKSSO9CjAqE5k9pig1bpdrgq+QejKgh/10sxa+nBa 4jXCFKQhIftql1zi8AV32RDcgxRKw6x6D0iGjn5x7zFUL7aayBKWF9PZsqyWgD1qtwAl 7iDg== 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=gT2PY1XPYaLE1ghWrSVSVbOpac7r7vmugo7fGkwtjw0=; fh=cBPc8/5sz1t9/z/fThNEw/HvSYmT+GedhkUTkESP7D0=; b=vGlXFt11GVS1XDfdE1F+mAP4Qzb2uXEvBLRAZEXyZBnjXJBl6CcBXzpIByQI2YuJ1o q4zY+KfZnE7iPfL5qi8xZm4jQxWwyfDR7OOqDxnC7UTOiwrPvhopL6Dwa2kZ436ArL6n MhYmYidgT5Rtv9XGS9ikL3gtz7h1UlVH9Q8B/6x2psQTpRxjji3/goD0loEomOeXOzhe PZ5t7T/ODwuaTcvYqnH1TzCi6vrDScknsq5LCtuVldetaFAsT3rNBg0S1owOo0Mv+de6 3JjNsGS/GFsG7WiD7YG/RQG2ANHQzUayv4gArQaQXmS902SzQ6eYHF9xhQX+2UJ4MUj5 WKtg== 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 v8-20020a056a00148800b006871817f76dsi227081pfu.202.2023.07.28.06.29.34; Fri, 28 Jul 2023 06:29:48 -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 S235742AbjG1NVh (ORCPT + 99 others); Fri, 28 Jul 2023 09:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbjG1NVg (ORCPT ); Fri, 28 Jul 2023 09:21:36 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1DEB1BC6; Fri, 28 Jul 2023 06:21:34 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RC7XW3XT3zVjt1; Fri, 28 Jul 2023 21:19:55 +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; Fri, 28 Jul 2023 21:21:32 +0800 From: Yue Haibing To: , , , , CC: , , Yue Haibing Subject: [PATCH net-next] devlink: Remove unused extern declaration devlink_port_region_destroy() Date: Fri, 28 Jul 2023 21:21:13 +0800 Message-ID: <20230728132113.32888-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: dggems705-chm.china.huawei.com (10.3.19.182) 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: 1772671193501827777 X-GMAIL-MSGID: 1772671193501827777 devlink_port_region_destroy() is never implemented since commit 544e7c33ec2f ("net: devlink: Add support for port regions"). Signed-off-by: Yue Haibing Reviewed-by: Simon Horman --- include/net/devlink.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/net/devlink.h b/include/net/devlink.h index 0cdb4b16e5b5..a1a8e1b6e7df 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -1790,8 +1790,6 @@ devlink_port_region_create(struct devlink_port *port, u32 region_max_snapshots, u64 region_size); void devl_region_destroy(struct devlink_region *region); void devlink_region_destroy(struct devlink_region *region); -void devlink_port_region_destroy(struct devlink_region *region); - int devlink_region_snapshot_id_get(struct devlink *devlink, u32 *id); void devlink_region_snapshot_id_put(struct devlink *devlink, u32 id); int devlink_region_snapshot_create(struct devlink_region *region,