Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp728194rwo; Fri, 21 Jul 2023 21:49:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFi/e21vM3/EGzDb6rBsjfpHycqQmyZV76Ajuv+v18sFXcjgvPYuPRTB1T+iNH8cQ74hen1 X-Received: by 2002:a05:6a20:b715:b0:130:661c:613d with SMTP id fg21-20020a056a20b71500b00130661c613dmr3178109pzb.5.1690001354963; Fri, 21 Jul 2023 21:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690001354; cv=none; d=google.com; s=arc-20160816; b=wYJWIlVVOvEq5GcR2YtUwSKM3E7xVNSr8CJOojHWIUdY/vrEaOppdX1QEA+5ciKRg4 OxJ+keFdyOUqnFfSSEDA1j1eUq7DDBbZqLudyBB2bjeXIUe0L4sfSqsAkv6IuYJR7L5E T+y4/FLah3ok58oCZJVdiLreEW0qZ/0XtbtfPM2XfNkvxpIMLcT1i42y/lfDK4tlbvCT RJCgZSqDWxbJpyaLulR56VDGHvqD6VeiqyndC/fNmC70PvV3UX1D+dUZHdZQMDla4oKU N8NkkBLH9zZZlepgOxbb2UrruUJYXdOSGl3ySgiDLMYVH2h0sv+Tj25YPc97o+lleKLY kqUA== 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=TSnNR8IQcptMhSYUFn3X3D4gO9D1UW7tTm+BVRSkqVY=; fh=6HqZSB7wVmDdD6yR2VeMnGDUqjODl/5pzasghyD+KI8=; b=YRU1HbcpcBZ4GIh/eg0oCaOtVyM0Ad5xQqWMmy47eRCTx8EwkdM0dB2tgs/9FejX1O 1pbQlSRfaa1dRiVShh7g28Fvbqzt+ZFv+ZtZeFOI7OZqeK18R2c5ZoGs6Y3qmn8U/pws qsn2E+vB1egi7vDOpKVnN4/a4+xjB37hlGOWbahlKkGSGJSxAJ88PWY/SqzkF1/Vd7vq 9AHwe18lI9s/W4lyre1BZoHtYnFHzOd0g+8lkIJfA8V1KkloqRCWmm1LMlY236ZGFcm8 AtLlRmf6hQzqGhZZNqNaFvy0Az/E4cjI94H/IGU58bkFUp5H4tkjb82VaV9UogJEMSmu G27w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g191-20020a636bc8000000b0056341268ed7si4300449pgc.853.2023.07.21.21.48.55; Fri, 21 Jul 2023 21:49:14 -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 S229844AbjGVDVy (ORCPT + 99 others); Fri, 21 Jul 2023 23:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjGVDVw (ORCPT ); Fri, 21 Jul 2023 23:21:52 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4675C3A9C; Fri, 21 Jul 2023 20:21:51 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R7BTT5lrVztQr4; Sat, 22 Jul 2023 11:18:37 +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; Sat, 22 Jul 2023 11:21:47 +0800 From: YueHaibing To: , , CC: , Subject: [PATCH -next] tracing: Remove unused extern declaration tracing_map_set_field_descr() Date: Sat, 22 Jul 2023 11:21:23 +0800 Message-ID: <20230722032123.24664-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain 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, 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 Since commit 08d43a5fa063 ("tracing: Add lock-free tracing_map"), this is never used, so can be removed. Signed-off-by: YueHaibing --- kernel/trace/tracing_map.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/trace/tracing_map.h b/kernel/trace/tracing_map.h index 2c765ee2a4d4..99c37eeebc16 100644 --- a/kernel/trace/tracing_map.h +++ b/kernel/trace/tracing_map.h @@ -272,10 +272,6 @@ extern u64 tracing_map_read_sum(struct tracing_map_elt *elt, unsigned int i); extern u64 tracing_map_read_var(struct tracing_map_elt *elt, unsigned int i); extern u64 tracing_map_read_var_once(struct tracing_map_elt *elt, unsigned int i); -extern void tracing_map_set_field_descr(struct tracing_map *map, - unsigned int i, - unsigned int key_offset, - tracing_map_cmp_fn_t cmp_fn); extern int tracing_map_sort_entries(struct tracing_map *map, struct tracing_map_sort_key *sort_keys, -- 2.34.1