Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7785977rwn; Wed, 14 Sep 2022 04:36:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qI13ULKWI94/ifOmkBNRW8AtEF9Eq198AjXI/RKQw9X6jDEu9nesFG2YNeUIncZ57bS5F X-Received: by 2002:a17:90a:2fc9:b0:202:5605:65ae with SMTP id n9-20020a17090a2fc900b00202560565aemr4363947pjm.167.1663155408783; Wed, 14 Sep 2022 04:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663155408; cv=none; d=google.com; s=arc-20160816; b=nqKa6dyy60wmqXqJGDZeLOmXZb+uBto8ItCkJRPPApYmMGQmOVUyWwyYLygzoVOCuh FIB9r06fqGAY3cUtbEZypDQLFWZPAY0NtgPEVhWXT/mDMY+bGXdMyHF9k8jx26geAWlM SQwe4QYITvndCfks5sTqPxFQiuwYntppNPcAPjAfY3dyLrVfrAQVk78G2cxNp751lpHC OgbfNdnoBfpd27b098iQOBE9o2OoBdfz3mzgrIAAVyny5et51g/yh503p4puqcME09Y3 p3mqqDLYW6w+09K0ba5FFPulqbNhNbo5nst42ztR2gppBB55CpP4ixxKc/Vn6DkmgNUh PiKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bdDlCeLAda92lRjkpSnX+qRg6nqJT2+U0LEbKO73U6c=; b=w6s35gII6EJPonGAkPqFRcIFIv5cB7HiMvf+lV9PetzZtTZUSSiCi0nsk/8T695BQJ ZcXQ2Omc+YWfkz7a+fuBvWimqeS9yqQczc3+u4ZXZo4qtv2XSb57w0oUEteRaxuIYljO bh61InH/EXMkMqgZuYdHKGNQ7GMxvP2nVSHi3ife6nudjEaTaVuFqtmBgqSnFg8nyrvJ QEDwO8WJkt4tb0XeaMgzEwG4Dz3QK8EjTYQBNV0VDZRyvlZwdpPd2AZ6CF6YwoIgq6yB oeFXBYYFtEsBhOtKjUZR5n6e/42BjBiZInJEDdPRnZTDp/nZDr9MdIEuFrX26huX1/Qm UEow== 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 x18-20020a170902821200b00172cb948c68si14008604pln.227.2022.09.14.04.36.36; Wed, 14 Sep 2022 04:36: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 S230113AbiINLE6 (ORCPT + 99 others); Wed, 14 Sep 2022 07:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbiINLEt (ORCPT ); Wed, 14 Sep 2022 07:04:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C46810FE0 for ; Wed, 14 Sep 2022 04:04:40 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MSHS8555VzlVrY; Wed, 14 Sep 2022 19:00:40 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 19:04:38 +0800 From: Gaosheng Cui To: , , , , , , , , , CC: Subject: [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration Date: Wed, 14 Sep 2022 19:04:36 +0800 Message-ID: <20220914110437.1436353-2-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914110437.1436353-1-cuigaosheng1@huawei.com> References: <20220914110437.1436353-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500012.china.huawei.com (7.221.188.12) 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,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 All uses of modifying_ftrace_code have been removed by commit 768ae4406a5c ("x86/ftrace: Use text_poke()"), so remove the declaration, too. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/ftrace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index b5ef474be858..908d99b127d3 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -23,7 +23,6 @@ #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR #ifndef __ASSEMBLY__ -extern atomic_t modifying_ftrace_code; extern void __fentry__(void); static inline unsigned long ftrace_call_adjust(unsigned long addr) -- 2.25.1