Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3349512ybb; Mon, 13 Apr 2020 06:16:58 -0700 (PDT) X-Google-Smtp-Source: APiQypL8sxxomJ1iLBk1z/c89kEMby33WkfkIEiW04lGYGxAjCJVwPLyxLfJPVfAfD6VXLMgC9bH X-Received: by 2002:aa7:cb45:: with SMTP id w5mr12088950edt.169.1586783818652; Mon, 13 Apr 2020 06:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586783818; cv=none; d=google.com; s=arc-20160816; b=mof9GFtJr9OLc0cIIV5gS9uBYYFUwwDbelQDsgEi20XPdqyFw7ZAlTNBDPTeo1pBSi hu3vXg/KTzRGGUILSuXuB9rFP0tXX9BrOsGrjaJMMsJv1aAdGo0K8c1EF4FhG7VrAfbU XfAbkfot/yFIZZ4zWv9zO98H2QZjZ0u3kc2GzHHbQ+mut/ctdPYu2LUUM1Xk8kVbQgNO 8eCtdiF5hJ+5BYBon5irTcyjZyVkDDDZNqBMAwePuShiTavN2y6RunO2vt+/h4YbGG9L k2tQ41DMYrl5dtY9mNHRErYt32JFdjbvnbPaT2bAKhrxGKHNOUe2WMg58dG1944ZXRWB nbUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xJqFTU0KBjpHrBNEHKNExLwNIf21yfQ+bC879jCc4Vo=; b=fZ2yMHfKnemPz4E3xArbJ+DOCYO6Y86Ji6IeI75KyvI0WpYs4wJ0SMARsXAUXTqX2Z taqbDbv066qBy5abctk2TrPTw3pcMMnfYFUK4KmPdO777YMVpLyDm59QN345DK6xxd5S UfBms6IIrRyWIfS1Wp8oVO3+YF4YUCRYOeq79kYo3oNsZEgU4YYXIZA/EK5ldpMQr6uO nABDm9GGjNGJTngB7QNh2ifj5vBKBLjaovJ5gDSYrrbxRGfQhE9qatzjibt1j6bPcF6F iTXQLrShUi3K/lAprKHLvuJ65GP6Usf2FKztnMqOcW7MLNV3vxosVLEz7nWUNH8cEZPe Glyg== 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si7111304edz.588.2020.04.13.06.16.34; Mon, 13 Apr 2020 06:16:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgDMKU5 (ORCPT + 99 others); Mon, 13 Apr 2020 06:20:57 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58437 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbgDMKUh (ORCPT ); Mon, 13 Apr 2020 06:20:37 -0400 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNwC6-0001Dz-1g; Mon, 13 Apr 2020 12:19:58 +0200 Received: from rhi by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jNwC4-0003AX-KM; Mon, 13 Apr 2020 12:19:56 +0200 Date: Mon, 13 Apr 2020 12:19:56 +0200 From: Roland Hieber To: Ahmad Fatoum Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Rouven Czerwinski , linux-arm-kernel@lists.infradead.org, Clemens Gruber , Russell King , stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: imx: provide v7_cpu_resume() only on ARM_CPU_SUSPEND=y Message-ID: <20200413101956.47ggeq4q2hei76yz@pengutronix.de> References: <20200323081933.31497-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200323081933.31497-1-a.fatoum@pengutronix.de> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: rhi@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 09:19:33AM +0100, Ahmad Fatoum wrote: > 512a928affd5 ("ARM: imx: build v7_cpu_resume() unconditionally") > introduced an unintended linker error for i.MX6 configurations that have > ARM_CPU_SUSPEND=n which can happen if neither CONFIG_PM, CONFIG_CPU_IDLE, > nor ARM_PSCI_FW are selected. > > Fix this by having v7_cpu_resume() compiled only when cpu_resume() it > calls is available as well. > > The C declaration for the function remains unguarded to avoid future code > inadvertently using a stub and introducing a regression to the bug the > original commit fixed. > > Cc: > Fixes: 512a928affd5 ("ARM: imx: build v7_cpu_resume() unconditionally") > Reported-by: Clemens Gruber > Signed-off-by: Ahmad Fatoum Tested-by: Roland Hieber What's the status here? master is still broken on most of my builds, and there were no other comments at all :-( - Roland > --- > arch/arm/mach-imx/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile > index 03506ce46149..e7364e6c8c6b 100644 > --- a/arch/arm/mach-imx/Makefile > +++ b/arch/arm/mach-imx/Makefile > @@ -91,8 +91,10 @@ AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a > obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o > obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o > endif > +ifeq ($(CONFIG_ARM_CPU_SUSPEND),y) > AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a > obj-$(CONFIG_SOC_IMX6) += resume-imx6.o > +endif > obj-$(CONFIG_SOC_IMX6) += pm-imx6.o > > obj-$(CONFIG_SOC_IMX1) += mach-imx1.o > -- > 2.25.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |