From patchwork Tue Jul 25 13:48:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 125647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2508598vqg; Tue, 25 Jul 2023 07:25:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGO7SYU+UhDtp+R8xZqJD1nHHixe2qtVRhwNew6DRHcc5dZKfQIs9pJ67KXUUsdl8A3MrQh X-Received: by 2002:a05:6512:12ca:b0:4fd:fac4:2016 with SMTP id p10-20020a05651212ca00b004fdfac42016mr3926973lfg.31.1690295137820; Tue, 25 Jul 2023 07:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295137; cv=none; d=google.com; s=arc-20160816; b=VzilMhG0cKZPxo7vVTGI2Qz0DYJrzCsqCnFCKr43+V4ioCkLNRjruMKzY8lIbxnXJR fq9VzSwsyEQjRNow+U0xkmX7xCSXVCQGZ5h8g6NUQtrMgC7Asp1yLaDBMDg/8ufMX2HF M2uWRmzydDUL9BhPdWD5rs8+jDThE392s5l4w+FWjRbeYyNgqrPZDP0SX+PgPPNhygA5 frwoipaYV9E7LlYFlodjASLo16VPwOViSbua+cRaRFfmjVttmRH8xbxObcnOg3vZm/Q7 J6ibkfrUqeiLzgSBFhEcnG2OlOj9JwLKAhEQbQPfBb3EwsIWi+oBoF4imGFUSRQSjPWr hxRg== 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=djI5SUi9rark3eipuFMQHWyJtiFC5gAiHq7c3Xo0JRU=; fh=PVqLMOsKAWlwxUqE6N2yKU/GzvbB3s4kCzVlsyzrs+U=; b=ooJ4SdBBjz/W++ZyBEAwuGUqhORJfzd6Yw3vMDMHqaKx5vgoPtcemO3n/UE34YvnCC lAa41X6ijNxkDZXS+38Gu08lBlNEfhB9MbckDR2e2BfkWffRoi8BG4d/IS3gHCh+3yU9 b54qKQq+fncvSH6T+v7NRavnQCBCI457vK4Sftai7r+uVvjnGnaA4o7cNryx3Sz8EWFz gtyJZlTfgR9JAbvo1dVpXF5EM0HaEngeop8nMRjBMZZBpD5josW6ztHaO8hb7qWCBH2n wYGDdZoA/6zur+58lvw1wIKzm/zHdw2AkdGCSdT7fbi3YP+hGwADa8Xr4zDrVaqo74m4 av4g== 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 y2-20020aa7ccc2000000b0051e0f0fef4fsi8747800edt.555.2023.07.25.07.25.13; Tue, 25 Jul 2023 07:25:37 -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 S231547AbjGYNsY (ORCPT + 99 others); Tue, 25 Jul 2023 09:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbjGYNsW (ORCPT ); Tue, 25 Jul 2023 09:48:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21076A1; Tue, 25 Jul 2023 06:48:21 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R9JDl5WTszCrLy; Tue, 25 Jul 2023 21:44: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; Tue, 25 Jul 2023 21:48:18 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] ftrace: Remove unused extern declarations Date: Tue, 25 Jul 2023 21:48:08 +0800 Message-ID: <20230725134808.9716-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: dggems704-chm.china.huawei.com (10.3.19.181) 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: 1772402914851212256 X-GMAIL-MSGID: 1772402914851212256 commit 6a9c981b1e96 ("ftrace: Remove unused function ftrace_arch_read_dyn_info()") left ftrace_arch_read_dyn_info() extern declaration. And commit 1d74f2a0f64b ("ftrace: remove ftrace_ip_converted()") leave ftrace_ip_converted() declaration. Signed-off-by: YueHaibing --- include/linux/ftrace.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index ce156c7704ee..aad9cf8876b5 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -684,7 +684,6 @@ void __init ftrace_set_early_filter(struct ftrace_ops *ops, char *buf, int enable); /* defined in arch */ -extern int ftrace_ip_converted(unsigned long ip); extern int ftrace_dyn_arch_init(void); extern void ftrace_replace_code(int enable); extern int ftrace_update_ftrace_func(ftrace_func_t func); @@ -859,9 +858,6 @@ static inline int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_a } #endif -/* May be defined in arch */ -extern int ftrace_arch_read_dyn_info(char *buf, int size); - extern int skip_trace(unsigned long ip); extern void ftrace_module_init(struct module *mod); extern void ftrace_module_enable(struct module *mod);