Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp379602rwb; Wed, 7 Dec 2022 19:55:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7oaJvpJACNAFd6OCmGGz6fqnPEBWZBrZ+0qaIOoVvjSUok6AaCScWRB0RqFv1rhvjnWnQH X-Received: by 2002:a17:906:b748:b0:7c1:235f:949c with SMTP id fx8-20020a170906b74800b007c1235f949cmr2865950ejb.275.1670471701401; Wed, 07 Dec 2022 19:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670471701; cv=none; d=google.com; s=arc-20160816; b=os/8MZQ+J9bDvoZU7R7/kmRlOELctZfAVBNgQdCVCVWP/FITM64CA/ApSTD+RVu7fL WEujGUQeTWn5HJh9zq9jzU7B8sATMazee02v7lu5LmmHwSExI6owJ2M/GMh5QDDAu/a1 7AJKUOQixKZvUghfvimnrQUvlSp4SXptdwmXgVAwXBDEt8IIsUISHTnB7LlQrHH7MArL v9G+zAPVzeV/ifl6NM8uMrMtKst0qqXco6KJHjZHDZT3iuQAxhhzkhP/NpW/VC5ptDYL IT2JwppA6+iG4SUxqb/4Q3piI+WLG7xx3AQs/xChE97SRbdr5AQ+hNwu1/fvWaJdUQTe 25Ew== 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 :dkim-signature; bh=XbwfNx0n3eiHlHS8+KolgItzOZ0VD3pjUY/e214Rs8w=; b=kxXRggZ9ESF7OckFaYaAijahZIGpmZaPtV9Nszb6PkBE7yOZlnPfgRdL70E9pqZ/8F PwzGACUR4BH7GftZAOlrecbQuOsKTEicWDRh+ta8GGhQdsVhJRG+AJWndKr0QYxDF8nl fHA5xC0jpvDh2KQuUzKBbLGYeQn9xNgFCZp2ExginMp46ph4siX4FBeZcZy5LINurOFt 1x8ESCYC3jHd43Vh8NMUKc23m1Wof2BrN3FnlEYlqqRF1m4iCwjdBhGT4c6ssePXCmHS 14pqBa3vkCooGAgRJ5g/QrXpaDUv1ktlKi922YH+v8+Dyku9RbMj0JwryGKhkaJcq7Ms FqfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kDPsp77X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a056402278900b00461cb980126si6918121ede.309.2022.12.07.19.54.43; Wed, 07 Dec 2022 19:55:01 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kDPsp77X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbiLHC7w (ORCPT + 74 others); Wed, 7 Dec 2022 21:59:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiLHC7Z (ORCPT ); Wed, 7 Dec 2022 21:59:25 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD9D1950FC; Wed, 7 Dec 2022 18:59:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 75A23B82205; Thu, 8 Dec 2022 02:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78424C433C1; Thu, 8 Dec 2022 02:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670468361; bh=QDsLvBqaEhK8uPpJxaP7nMuMSfzGSxOc/bZ9S/vHdls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kDPsp77Xd4ki+5aNJfRlMYZHmUFMrRIP5bYvAQQ1EHYn2GTWXkAij0G3k6c9MOrYl DD4KcyHlxfUNfy+46+K6gFwyWU3dWk13JTQUnZtZRw/K7Aq0vIrdun8nRYa2etd2eH vTWnqoAixhy4oX89dmsnfcSTPDfCVHi1q9yWAH9CosUNlDK85kzEVRn8y1sK37KfPh bDHrXew+Byxw4ibuVQEdkM9dUGrsrYbqVWmphc53LEkVLU0VIjvPTL0P6n84C7Rp4j a1UfUT6FXgjdsv5Y7Np03Ys01oN8T2rE3yAmbDcx4Z31ScYuzxnnu3S6eKPHh5LY91 x5JVRNWJeDvzA== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, lazyparser@gmail.com, falcon@tinylab.org, chenhuacai@kernel.org, apatel@ventanamicro.com, atishp@atishpatra.org, palmer@dabbelt.com, paul.walmsley@sifive.com, mark.rutland@arm.com, zouyipeng@huawei.com, bigeasy@linutronix.de, David.Laight@aculab.com, chenzhongjin@huawei.com, greentime.hu@sifive.com, andy.chiu@sifive.com, ben@decadent.org.uk, bjorn@kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH -next V10 05/10] riscv: entry: Remove extra level wrappers of trace_hardirqs_{on,off} Date: Wed, 7 Dec 2022 21:58:11 -0500 Message-Id: <20221208025816.138712-6-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221208025816.138712-1-guoren@kernel.org> References: <20221208025816.138712-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Jisheng Zhang Since riscv is converted to generic entry, there's no need for the extra wrappers of trace_hardirqs_{on,off}. Tested with llvm + irqsoff. Signed-off-by: Jisheng Zhang Reviewed-by: Guo Ren Tested-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/kernel/Makefile | 2 -- arch/riscv/kernel/trace_irq.c | 27 --------------------------- arch/riscv/kernel/trace_irq.h | 11 ----------- 3 files changed, 40 deletions(-) delete mode 100644 arch/riscv/kernel/trace_irq.c delete mode 100644 arch/riscv/kernel/trace_irq.h diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index 4cf303a779ab..392fa6e35d4a 100644 --- a/arch/riscv/kernel/Makefile +++ b/arch/riscv/kernel/Makefile @@ -68,8 +68,6 @@ obj-$(CONFIG_CPU_PM) += suspend_entry.o suspend.o obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o -obj-$(CONFIG_TRACE_IRQFLAGS) += trace_irq.o - obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o obj-$(CONFIG_RISCV_SBI) += sbi.o diff --git a/arch/riscv/kernel/trace_irq.c b/arch/riscv/kernel/trace_irq.c deleted file mode 100644 index 095ac976d7da..000000000000 --- a/arch/riscv/kernel/trace_irq.c +++ /dev/null @@ -1,27 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (C) 2022 Changbin Du - */ - -#include -#include -#include "trace_irq.h" - -/* - * trace_hardirqs_on/off require the caller to setup frame pointer properly. - * Otherwise, CALLER_ADDR1 might trigger an pagging exception in kernel. - * Here we add one extra level so they can be safely called by low - * level entry code which $fp is used for other purpose. - */ - -void __trace_hardirqs_on(void) -{ - trace_hardirqs_on(); -} -NOKPROBE_SYMBOL(__trace_hardirqs_on); - -void __trace_hardirqs_off(void) -{ - trace_hardirqs_off(); -} -NOKPROBE_SYMBOL(__trace_hardirqs_off); diff --git a/arch/riscv/kernel/trace_irq.h b/arch/riscv/kernel/trace_irq.h deleted file mode 100644 index 99fe67377e5e..000000000000 --- a/arch/riscv/kernel/trace_irq.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Copyright (C) 2022 Changbin Du - */ -#ifndef __TRACE_IRQ_H -#define __TRACE_IRQ_H - -void __trace_hardirqs_on(void); -void __trace_hardirqs_off(void); - -#endif /* __TRACE_IRQ_H */ -- 2.36.1