Received: by 10.192.165.148 with SMTP id m20csp4289895imm; Tue, 8 May 2018 06:14:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpU9WABX8GHOSAFvbjTxQdkBT25olFlm2k1kNxsr8UihOTOBaFw38yObPzZeaTeX5CnwG74 X-Received: by 2002:a63:be0a:: with SMTP id l10-v6mr17467369pgf.295.1525785255483; Tue, 08 May 2018 06:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525785255; cv=none; d=google.com; s=arc-20160816; b=MUukIqcxB40+PD07p8SOyYJ9k20ZpuOAvp1TKxLm/dvPlFRu5LZEmXcb89fOZvfMkm Jo5uO67s6Ngwhm9upv4d7xWRiMiKsRh2D2iolJdlvGrgLb2B+kzuC6n64Hyave0mfcHY x7tt6Dz8EQZNFvYCxJINv+av8PnFTbAKeY9yiZLjJbW649d/9Uw+sdyC1iIHfDlLMoJh qoTSRHqmZ6CEBtyeVbsEchMtsaQmpVioqjAct0uldI962bigY+iCJjE4xYEhvcEllbrl w9eyLpG4PsIQ2czwijb/UJtahfeJR1Ak35Tcxv4LVO7+XsuoVvWfLWwC7pC+vTAKg+D3 hxOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=8Hotar7eAs9j+Bjvyb3fP23CRetkCji5jEMHHdJR/8Q=; b=015azSZbVGBYgbHOKkJOlHUekMXDllj2tMTI+T8wT0P25GKZu7gg6QLt+07biorjfY JcPaIaNANKyu99mU8Ml4YmTnN3WV3nmoiyGJzAMU+luMiaJ9htE/QjbMJxE4SeV6HXWp WO39SVKH+t+v2PbGWXijhMklXR+FzP/OoHTHi4Rgb3hbiGbWwiOXRDpUR+AoJDnc1QDJ 9/nzEMfApQBtQaq+wUPzgmmp+zxh5wfzhY8d79MS3EyEB32Wpjr6hJ2bBh5mxh/FXRbU mo76opnFxiRo5gNARJY9jQAZahafP5Ak1Zyb52KbHK9ue7r1cXAYRNNAxtx7bXH5ax/l vtaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si24071365plb.77.2018.05.08.06.14.00; Tue, 08 May 2018 06:14:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754687AbeEHNLq (ORCPT + 99 others); Tue, 8 May 2018 09:11:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:48316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752191AbeEHNLo (ORCPT ); Tue, 8 May 2018 09:11:44 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B155B214D5; Tue, 8 May 2018 13:11:43 +0000 (UTC) Date: Tue, 8 May 2018 09:11:42 -0400 From: Steven Rostedt To: Alan Kao Cc: Palmer Dabbelt , Albert Ou , , , Ingo Molnar , Greentime Hu , Zong Li Subject: Re: [PATCH] riscv/ftrace: Fix the problem modules cannot find _mcount Message-ID: <20180508091142.12b5231a@gandalf.local.home> In-Reply-To: <1525749717-384-1-git-send-email-alankao@andestech.com> References: <1525749717-384-1-git-send-email-alankao@andestech.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 May 2018 11:21:57 +0800 Alan Kao wrote: > Enabling ftrace and module support at the same time fails the kernel > build process, because modules cannot find the _mcount symbol. This > patch fixes this issue. I think you have a much bigger issue. > > Signed-off-by: Alan Kao > Cc: Greentime Hu > Cc: Zong Li > --- > arch/riscv/kernel/mcount.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/mcount.S b/arch/riscv/kernel/mcount.S > index ce9bdc57a2a1..5721624886a1 100644 > --- a/arch/riscv/kernel/mcount.S > +++ b/arch/riscv/kernel/mcount.S > @@ -126,5 +126,5 @@ do_trace: > RESTORE_ABI_STATE > ret > ENDPROC(_mcount) > -EXPORT_SYMBOL(_mcount) > #endif > +EXPORT_SYMBOL(_mcount) How does this work? How do you export _mcount if _mcount isn't even defined? -- Steve