Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77DB4C43603 for ; Fri, 6 Dec 2019 13:29:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45E3C205F4 for ; Fri, 6 Dec 2019 13:29:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UnxREw+n" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45E3C205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jl8qu3ySicSuJ0ea6/I3405/IyEQyMmxmIa00m+HpB4=; b=UnxREw+nt4/Zx6 rqMyyNFTbLX9o/eLD+PcjITPVApkznpU8kQldrNGmlAGvAUBlTYts+Bt+3xgu9mFP7ayEeiQZZalS BYYVblAeRAcbxk2obj3IfERTrhLzAILvtGAg1XPWfFPgdnm/E2yWrrVYMjQscMrh43bue94961VwW 3r6dVo1t7IKjiXndTA0En3kh84kkGtdi3yCqJMf/5BnaYiA1waQTFbu0gTdCWZP9bTKkzyky5tUuH JKX508Br0W+Ea8wRW9ZcN2TNF3D1YSMMnlXtHPGfWO7zK7vFdnuYiv5lqJ0ao6CoJHC7k88GCSxNN fgBESIZkPWx2iI55B7xA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1idDgE-0000pz-FR; Fri, 06 Dec 2019 13:29:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1idDgB-0000pZ-Cm for linux-arm-kernel@lists.infradead.org; Fri, 06 Dec 2019 13:29:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A37991FB; Fri, 6 Dec 2019 05:29:54 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BE3483F52E; Fri, 6 Dec 2019 05:29:53 -0800 (PST) Date: Fri, 6 Dec 2019 13:29:51 +0000 From: Catalin Marinas To: Mark Rutland Subject: Re: [PATCH] arm64: ftrace: fix ifdeffery Message-ID: <20191206132951.GF32767@arrakis.emea.arm.com> References: <20191206130129.31357-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191206130129.31357-1-mark.rutland@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191206_052955_475854_BB30A3FB X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amit Daniel Kachhap , Torsten Duwe , will@kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 06, 2019 at 01:01:29PM +0000, Mark Rutland wrote: > When I tweaked the ftrace entry assembly in commit: > > 3b23e4991fb66f6d ("arm64: implement ftrace with regs") > > ... my ifdeffery tweaks left ftrace_graph_caller undefined for > CONFIG_DYNAMIC_FTRACE && CONFIG_FUNCTION_GRAPH_TRACER when ftrace is > based on mcount. > > The kbuild test robot reported that this issue is detected at link time: > > | arch/arm64/kernel/entry-ftrace.o: In function `skip_ftrace_call': > | arch/arm64/kernel/entry-ftrace.S:238: undefined reference to `ftrace_graph_caller' > | arch/arm64/kernel/entry-ftrace.S:238:(.text+0x3c): relocation truncated to fit: R_AARCH64_CONDBR19 against undefined symbol > | `ftrace_graph_caller' > | arch/arm64/kernel/entry-ftrace.S:243: undefined reference to `ftrace_graph_caller' > | arch/arm64/kernel/entry-ftrace.S:243:(.text+0x54): relocation truncated to fit: R_AARCH64_CONDBR19 against undefined symbol > | `ftrace_graph_caller' > > This patch fixes the ifdeffery so that the mcount version of > ftrace_graph_caller doesn't depend on CONFIG_DYNAMIC_FTRACE. At the same > time, a redundant #else is removed from the ifdeffery for the > patchable-function-entry version of ftrace_graph_caller. > > Fixes: 3b23e4991fb66f6d ("arm64: implement ftrace with regs") > Reported-by: kbuild test robot > Signed-off-by: Mark Rutland > Cc: Amit Daniel Kachhap > Cc: Ard Biesheuvel > Cc: Catalin Marinas > Cc: Mark Rutland > Cc: Torsten Duwe > Cc: Will Deacon Queued for 5.5-rc1. Thanks. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel