Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7777311rwn; Wed, 14 Sep 2022 04:28:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JVDzC2HRlmDSgTZyk+M4VYHwGv94aBhSChwm5xzvO4NB6WRmeC33X9DzXiQy0Ql9548f4 X-Received: by 2002:a65:6e0c:0:b0:438:a981:aea7 with SMTP id bd12-20020a656e0c000000b00438a981aea7mr19457778pgb.144.1663154892832; Wed, 14 Sep 2022 04:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663154892; cv=none; d=google.com; s=arc-20160816; b=IQuiWMmnJYTBDmv/dcxoWRyDm9uDK9TP9ePSHR2n9tJIoVePBswy0ULXsgqiDOEngL sD0M7gHB/Gy+uVkfORgBhyuiwDzVxhqd8Ionm7fu8ZNGI7fUQlu1DWiuN74i9h496My9 +oaUtbUhYbgEG9KpHt/JdV7nkVFCpWFmxmEw9YHS9T/H7LOU0yOgfx4OPHjw6WBoPVMY I10uofSlw1ViohYFWv4VxOSHMe13eDYL0RT1ZAEAGyayJYhcHYFMBVhYXU12ML4BIubp lA1Zmkdk7JZnaTAZc9hFOnFFG/3cxC5Cezo87TBtVRYSObk9eT4j6yI1vJDVpMfAIbcW /4eA== 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=7f/ZQQ6rPlpLM1FP8b9RJkLp0cdcTN92OQHVAaRrnZg=; b=sXALnvc3UfK7noLPXXeHWrGQd9TpME0C9fgj0obS+rd9pn0iIZnstVY9XotgwyjjWq uQpIj7WpbrGhC+aimgZvyS8kc8FeJLeciPdsZTesy0Wa8Dz/EiiimE5zzoACl2Jtw1Co Lfp/8wbxza1RlqpTC1U1vXdRbBDmOD/zjFqmRUV1wYk87jaGk0ldbBDYYqtTIdQp2001 2+dwFi7NcoJQKZJEdQ7KCP4xmWPOMj9gYZv0q955aJbV3oSKWutH0d6WJFeMsGiHSCht Chdwq//xuzi4lljvOwgqVhyNSQoCJuXn/gzorzxN+hDAM0V/T2s/ztoPdA1LESgEgiOb GiBQ== 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.27.59; Wed, 14 Sep 2022 04:28:12 -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 S229871AbiINLEw (ORCPT + 99 others); Wed, 14 Sep 2022 07:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbiINLEs (ORCPT ); Wed, 14 Sep 2022 07:04:48 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B20AEE10 for ; Wed, 14 Sep 2022 04:04:41 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MSHS94TPpz14QSf; Wed, 14 Sep 2022 19:00:41 +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 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration Date: Wed, 14 Sep 2022 19:04:37 +0800 Message-ID: <20220914110437.1436353-3-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 arch_kprobe_override_function() have been removed by commit 540adea3809f ("error-injection: Separate error-injection from kprobe"), so remove the declaration, too. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/kprobes.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/kprobes.h b/arch/x86/include/asm/kprobes.h index 71ea2eab43d5..a2e9317aad49 100644 --- a/arch/x86/include/asm/kprobes.h +++ b/arch/x86/include/asm/kprobes.h @@ -50,8 +50,6 @@ extern const int kretprobe_blacklist_size; void arch_remove_kprobe(struct kprobe *p); -extern void arch_kprobe_override_function(struct pt_regs *regs); - /* Architecture specific copy of original instruction*/ struct arch_specific_insn { /* copy of the original instruction */ -- 2.25.1