Received: by 10.192.165.148 with SMTP id m20csp3807821imm; Mon, 7 May 2018 20:23:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqNwQkmALtjfEoiWdYiZbmK6E10a9qc3PMKNoQT8UobrrakOpD6hktBcKRvQhaWE4HtejWj X-Received: by 2002:a65:5a07:: with SMTP id y7-v6mr31514718pgs.15.1525749801802; Mon, 07 May 2018 20:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525749801; cv=none; d=google.com; s=arc-20160816; b=n5/10KaBLu1ariR4FxmjES/HMTYuR53TY3zbSslqTxKOyN99jZs/lrC/9SwoAJev9E RCOAx8uORTZY0UxmH27NH1RuOWCRz5ewM1U2D+BvlW9fKGgcH4A7odIeDCpQ73SrIdB5 LKZ0ZAAh2THp6wUbOvj2ur1QSi2g0B07NTva8o3w6umb/YvmemFpGdJ+vNULpzonC4Xc 68MSmbkDHHnvIl/OqlTMEQHPYVVrQEwChlvSCA+BxHA0tjDSAuDBeKRAPsdif5o/1AbU Gon0FRqRrWDzgwZhrm7z4qB03b6GyufL9WU/iXJm6EkmNxRpUqCMqHddTHIIwLBsAuTU LF7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=F40WV7o8ZLolzdEloX6yL3BfG90vgAMJPFRHEvYI5Rk=; b=rboa/S6ACEzJALGJU4CcUx1SLQyiJD70XKzQLOcM3eIf01oX7VloQxmY1aOQczLbS6 hh5oKgF6rKlYTiPwlnfwZ7aV6AQXJYw7xJsZAPkbCBDeMac3WF1CvS7xWpN0aHQonoIy BVVlZeV630GkS80aK1zhg+ErV1O4lWXgkLcsxpgaOfxiKEGuGMmAFyt7W8CQIPXHi+qb jZoY3Tn/I6KsaiWXt7CZvcf4KduJsHVc5XkoGzD6J51hmz51RrvuD11G8tqGlLGpzDZz WJFqT4Zb2B3k7MxfgWaS6PiOAXRfMJW5GnavMH9V2uR+Q2Tpred1qyd6DP7bSr4zAmiY W1ng== 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 f16si23622311pfe.291.2018.05.07.20.23.07; Mon, 07 May 2018 20:23:21 -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 S1754148AbeEHDWj (ORCPT + 99 others); Mon, 7 May 2018 23:22:39 -0400 Received: from exmail.andestech.com ([59.124.169.137]:63688 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753869AbeEHDWh (ORCPT ); Mon, 7 May 2018 23:22:37 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w483E771024497; Tue, 8 May 2018 11:14:07 +0800 (GMT-8) (envelope-from alankao@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Tue, 8 May 2018 11:22:01 +0800 From: Alan Kao To: Palmer Dabbelt , Albert Ou , , , "Steven Rostedt" , Ingo Molnar CC: Alan Kao , Greentime Hu , Zong Li Subject: [PATCH] riscv/ftrace: Fix the problem modules cannot find _mcount Date: Tue, 8 May 2018 11:21:57 +0800 Message-ID: <1525749717-384-1-git-send-email-alankao@andestech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w483E771024497 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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) -- 2.17.0