From patchwork Sat Jul 22 03:21:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 124201 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp619770vqg; Fri, 21 Jul 2023 21:48:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBiTOon4TTCqmvhU9eh884VbW2w3QfrjaMXR2qlkaxvE4wbROTKyeHTCerN1p5ZkZ+7nea X-Received: by 2002:a17:90b:1e11:b0:267:75ce:f6d9 with SMTP id pg17-20020a17090b1e1100b0026775cef6d9mr3016301pjb.3.1690001316645; Fri, 21 Jul 2023 21:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690001316; cv=none; d=google.com; s=arc-20160816; b=hZkphqcz+KGdDQo2gU5V4qzVbxsSngxTs2iOJ+nLfAUrvGIqbqUSSHcwfYLeC/rlOO 5N78dMoJpCmIZlRSNxd43+RI8LpIA6S7x7pb8GRvZArFpkNd/reCxmpEnAgsyBv+EblG Xl1sfQ3GZmRKxKoJwz4JSTwbPe8/gg8Md9D+rovDJNpP4I8azuT+kn2SZ2bhyqIqHI2n qqaKeGKAqanLXUjRtnS/FUGuIUM7gHhEZLz+E7BiYvjnP/7Ooq8F3kraPUtkaF5dAXku aomu+rfEIZG3vXlrhXIVHB9prJGuatWGZ5XfSJMVx8t7msh4zjK5A4If9KnfZW6PboX3 4myQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gi16-20020a17090b111000b00263f6368c25si4592712pjb.146.2023.07.21.21.48.23; Fri, 21 Jul 2023 21:48:36 -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 S229961AbjGVDVz (ORCPT + 99 others); Fri, 21 Jul 2023 23:21:55 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772094820724001610 X-GMAIL-MSGID: 1772094820724001610 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,