Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp348954rwb; Wed, 9 Nov 2022 03:24:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM536W74F5EWpTF0sCkmS8rhPY4k47xOhdEbgzpXemK77xsxe510SDJtbhdkBNgXVMiWcJID X-Received: by 2002:a17:90b:1982:b0:212:fe7f:4a49 with SMTP id mv2-20020a17090b198200b00212fe7f4a49mr79975408pjb.156.1667993085108; Wed, 09 Nov 2022 03:24:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667993085; cv=none; d=google.com; s=arc-20160816; b=b7eYqNT45bFWf4NN9k5z0kxhMm20RoIFX4E2ps9y05iLWXh5yYIldRc+u5qwtdg4Hz ClY8GPU+lCSiTQapbonwZ/EC0SHBA//gsMEWnU+JHk67XFqHPGQlhkar4o2NPewGkQ2v iM3cuQs1v99gOjRYbwzt8RrX4saSjq9R0CcAbq7A3bsr6PidO7ZGCNC9Nbn7hYKl9jGp 2IKIhhIsyLRHNBkaLmubMLhHki81Tz9HBng5blSPFqQYr1lXdPu2hW56BmVO9ZOoU6U2 wtIatPmhJQQ4kBs/sNvBAAaVOjkivISn6rUtpsNZz6SnKfQoVj16ywmqJ9p1wQ8Op6uF YYHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/11jHGeP6ZAFv4FtHh51C6SGicTq1y2z2SFeQ+yILfo=; b=Hx6o2Z6eSrfj87l9kkEfQbsA3ZuYdc26fUGmfMB4rm/h+gkNy7bJVTTlDVq166AtEd zHPtozI4plOVU/9eYcQUMaIuv9nTyvEzjd/GgJtbj++w6IUFXP6CuqMzMKGuAFZrFIL0 tX0oyqFGKaggIMVKorDmfDiGQfySkJjEsMZ2A0EGx4tRBrriFT46ntlaz8U2QcuTjP7a JFlF/I5ddYMGTIoY0b6/l5JJoUe69P7uQFy+KjvNWqDwOK/13DOAZPeTor7Oq0dyx2To jfqyQBoyYQ8WRhpkUTteztUdaOZ28RdGeIhv3ONEhPRKnD5p/gdbIVG57BywoTH9Rf48 loXQ== 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 k19-20020aa788d3000000b0056ae8f6df38si18465989pff.180.2022.11.09.03.24.33; Wed, 09 Nov 2022 03:24:45 -0800 (PST) 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 S230001AbiKIJqU (ORCPT + 93 others); Wed, 9 Nov 2022 04:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbiKIJqO (ORCPT ); Wed, 9 Nov 2022 04:46:14 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D8322BE4 for ; Wed, 9 Nov 2022 01:46:13 -0800 (PST) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N6g864XHkzmVpD; Wed, 9 Nov 2022 17:45:58 +0800 (CST) Received: from huawei.com (10.175.112.208) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 9 Nov 2022 17:46:11 +0800 From: Wang Wensheng To: , , , CC: , , Subject: [PATCH -next 3/3] ftrace: Delete unused variable ftrace_update_time Date: Wed, 9 Nov 2022 09:44:34 +0000 Message-ID: <20221109094434.84046-4-wangwensheng4@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109094434.84046-1-wangwensheng4@huawei.com> References: <20221109094434.84046-1-wangwensheng4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.208] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500015.china.huawei.com (7.221.188.92) 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 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 ftrace_update_time is not used anywhere else after initialization. So delete it together with its initial code. Signed-off-by: Wang Wensheng --- kernel/trace/ftrace.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 43a958b28022..3e102c44b117 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3110,7 +3110,6 @@ int ftrace_shutdown(struct ftrace_ops *ops, int command) return 0; } -static u64 ftrace_update_time; unsigned long ftrace_update_tot_cnt; unsigned long ftrace_number_of_pages; unsigned long ftrace_number_of_groups; @@ -3130,13 +3129,10 @@ static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs) bool init_nop = ftrace_need_init_nop(); struct ftrace_page *pg; struct dyn_ftrace *p; - u64 start, stop; unsigned long update_cnt = 0; unsigned long rec_flags = 0; int i; - start = ftrace_now(raw_smp_processor_id()); - /* * When a module is loaded, this function is called to convert * the calls to mcount in its text to nops, and also to create @@ -3173,8 +3169,6 @@ static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs) } } - stop = ftrace_now(raw_smp_processor_id()); - ftrace_update_time = stop - start; ftrace_update_tot_cnt += update_cnt; return 0; -- 2.17.1