Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp830696pxb; Thu, 17 Feb 2022 16:02:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp1YfvFPGx/YhwOPmqkLfCRFbT1GWNNZqHm5C5hFc9V0w+4J/LkMMSq+nzRgXG+6XYEsdt X-Received: by 2002:a9d:64d2:0:b0:5a4:44c:1e76 with SMTP id n18-20020a9d64d2000000b005a4044c1e76mr1786681otl.324.1645142568043; Thu, 17 Feb 2022 16:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645142568; cv=none; d=google.com; s=arc-20160816; b=pLIamMUuGW/nFlg2yNM+YtLfgc7vfZZkWUs4rq+3JprUf7DC/DYf//XBmQdhaA0TMy VhBMWOmwBx/Efr2zffg4QNQlbjxVnshJ2vMg1jhYo5gjniI2B7q8gB5Ypfr52A3zK6aV 2HEnzp0jBkJkyWL5qGK+7b90xGPogjHset5+CxbXlMn7MuxFyKsyU1Q2Ej1uDiAc5PmP 712k3EeOWfX7d29W0Ig/D/d3Mii4HuRRhgWJA0rBfqa9ptK4oq1Mg13sI+hKQBB0Ce09 b0gFkKEuKIIixBDfU6Ep+far8R5oedrdRkcKZjL11LyMe/XcIyli5176hJXo4RUcCIDz 94+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6O8Xpg6MydXTil/FTqFUVmc2lW46rPBJGcK5U75LtL4=; b=o67oomqZG+fXYlvbWHYjWi5GLpTMP+VFfRr/pQub3KzUDQ4+ZTngIK4POwzWS58S8c 9f8+lwzXJo04FbbxahdxF4sr5swARf9xJt99x5Mdb4or4jBUmGAbfINqpLOqwEP5PcHk vrze+dlf2Ml7NXNBjuFEVJj4F56lduLt99Qyd1zoJgmH3AFHS154OYTVgW4k2AR9tjm9 wUDxMnABmY+JRl5k5b3HRSeGVpyvrL8lEw81TszmPI4zGk09eLuRczaajOquZvHRJjE9 RrbUTi7huC2SMlYihlgWwklaowZvNt+Fp4pOJLpdy/RhxLGpHWL7Bzu0dfPjGNzUCJWd VwUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AW1GIrcC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j4si777099otu.226.2022.02.17.16.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:02:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AW1GIrcC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47732326553; Thu, 17 Feb 2022 15:30:47 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244924AbiBQTDN (ORCPT + 99 others); Thu, 17 Feb 2022 14:03:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243700AbiBQTDM (ORCPT ); Thu, 17 Feb 2022 14:03:12 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DF88021E for ; Thu, 17 Feb 2022 11:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=6O8Xpg6MydXTil/FTqFUVmc2lW46rPBJGcK5U75LtL4=; b=AW1GIrcC5d/KTVTumGcfQ6UlbI fbcOBreeOXkTeIFQPJyLmKVrDUCO6uA9BJCPDDxYKUwF2AbuNTJnuo6prS2ZlCBIwagyz2FA/tQ9i 9DO2NVOB4HayNQqO97dOd8kowNYMN1wICi25FiF2u84pHYzihx6rnc4YDkM7WKpkciLUFyTj6NZiv 70TTX1QzVPUsdftwl3MuPTb7W4jT8y3wu8h1amZjpwa3hufk5gWQa9cbQg205vezk61ATTjsyywVe lUV5HXxq6GYfqdjOQK9nAy2ZfRtvO28FnR6FcZRsUtxnKNMoaTjeA+hW31jAqftVctLC4dypq/H89 rM7KA3kw==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKm3L-00Fs8e-3C; Thu, 17 Feb 2022 19:02:55 +0000 Message-ID: Date: Thu, 17 Feb 2022 11:02:52 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] NDS32: export __trace_hardirqs_on/_offf for entry/exit Content-Language: en-US To: Greentime Hu , Alan Kao Cc: Linux Kernel Mailing List , Nick Hu , Vincent Chen , kclin@andestech.com References: <20210928052657.20909-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi-- I have an updated patch for this one ... if anyone is out there to apply arch/nds32/ patches. On 9/28/21 06:15, Greentime Hu wrote: > Randy Dunlap 於 2021年9月28日 週二 下午1:27寫道: >> >> Add exports for __trace_hardirqs_on/_off and use them in >> kernel/ex-entry.S and kernel/ex-exit.S to fix build/linker errors. >> >> nds32le-linux-ld: arch/nds32/kernel/ex-entry.o: in function `fucop_ctl_done': >> (.text+0x12a): undefined reference to `__trace_hardirqs_off' >> (.text+0x12a): relocation truncated to fit: R_NDS32_25_PCREL_RELA against undefined symbol `__trace_hardirqs_off' >> nds32le-linux-ld: arch/nds32/kernel/ex-exit.o: in function `no_work_pending': >> (.text+0xea): undefined reference to `__trace_hardirqs_off' >> nds32le-linux-ld: (.text+0xee): undefined reference to `__trace_hardirqs_off' >> nds32le-linux-ld: (.text+0xf2): undefined reference to `__trace_hardirqs_on' >> nds32le-linux-ld: (.text+0xf6): undefined reference to `__trace_hardirqs_on' >> >> Fixes: 0cde56e0280d ("nds32: Fix a kernel panic issue because of wrong frame pointer access.") >> Signed-off-by: Randy Dunlap >> Cc: Nick Hu >> Cc: Greentime Hu >> Cc: Vincent Chen >> --- >> arch/nds32/include/asm/ftrace.h | 3 +++ >> arch/nds32/kernel/ex-entry.S | 1 + >> arch/nds32/kernel/ex-exit.S | 2 +- >> arch/nds32/kernel/ftrace.c | 3 +++ >> 4 files changed, 8 insertions(+), 1 deletion(-) >> >> --- linux-next-20210917.orig/arch/nds32/kernel/ftrace.c >> +++ linux-next-20210917/arch/nds32/kernel/ftrace.c >> @@ -276,8 +276,11 @@ noinline void __trace_hardirqs_off(void) >> { >> trace_hardirqs_off(); >> } >> +EXPORT_SYMBOL(__trace_hardirqs_off); >> + >> noinline void __trace_hardirqs_on(void) >> { >> trace_hardirqs_on(); >> } >> +EXPORT_SYMBOL(__trace_hardirqs_on); >> #endif /* CONFIG_TRACE_IRQFLAGS */ >> --- linux-next-20210917.orig/arch/nds32/include/asm/ftrace.h >> +++ linux-next-20210917/arch/nds32/include/asm/ftrace.h >> @@ -15,6 +15,9 @@ >> >> extern void _mcount(unsigned long parent_ip); >> >> +extern void __trace_hardirqs_off(void); >> +extern void __trace_hardirqs_on(void); >> + >> #ifdef CONFIG_DYNAMIC_FTRACE >> >> #define FTRACE_ADDR ((unsigned long)_ftrace_caller) >> --- linux-next-20210917.orig/arch/nds32/kernel/ex-entry.S >> +++ linux-next-20210917/arch/nds32/kernel/ex-entry.S >> @@ -8,6 +8,7 @@ >> #include >> #include >> #include >> +#include >> >> #ifdef CONFIG_HWZOL >> .macro push_zol >> --- linux-next-20210917.orig/arch/nds32/kernel/ex-exit.S >> +++ linux-next-20210917/arch/nds32/kernel/ex-exit.S >> @@ -9,7 +9,7 @@ >> #include >> #include >> #include >> - >> +#include >> >> >> #ifdef CONFIG_HWZOL > > loop in Alan and KC. -- ~Randy