Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4290479ybz; Mon, 20 Apr 2020 20:22:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIGe9RGw8+FJys4lBUZML7oBM1XPweIVyB2ByMZZEhDO98zfCfxpoLhJzPF8LyKCnO8xSlB X-Received: by 2002:a17:906:2443:: with SMTP id a3mr18240317ejb.291.1587439370473; Mon, 20 Apr 2020 20:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587439370; cv=none; d=google.com; s=arc-20160816; b=XxYcC3lqOcvENKUqsjU+uZuX+ESCB8RkIE9v3xA1ymyasjsyMLbxmWnNED5bzaO1BF iZeSgt27mW1ZjG6MQcMAyEs4ovnkCTslexF/ReAqcKRSMmblnS+vp1GjKc2yV4CC/NKX MFQYxqlAO5N1iT3I9Hjp2DHtEn2qNM0ntjND7ngqvxYBPeu/7X2zVoMHRo3N3FyL4bf4 wGuoM4frKMznQFb5ZdkOjsj3+elU18b3kezqU+McHh87uLi9o7/fO83vebgezpdUzFHu xHMMQcbTy2ougMp5MPKnn04A3sPYfAVQEuIMJUO1KqiUu0aOhtx4EFWm/ZMPtTbz0tTP 0GMg== 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:dkim-signature; bh=jxSlsGQ7/9dm3tjgApc1Y8BC68J+FkQFiR05rKCLeuE=; b=HTtvwiwS2O54z/KiOcjWoUGyFDFq3AS6tdEgSaL0nQIGSOi0MLvBJD5HQdqQZR/z2F o8LklzX6bWpgEbCzhLDjG04R19YbbY74p1myWOhXOz+3bQ8Y4+Og1PtRpZEnmeCO2Aax vUWQ769VRBf0y9fNcBcabO39Y0rEUg5jHDf1xtGn5dvhOhOJyFHMuqyidN2rxYKYEAw3 RM2Ud69PL71Tq8mWvRDEb/ndkyZcxsCa/yZMLUCNZu+orpDfGgaBf93uOo7eBfhYDgWw nffPfXnJffT0UZRkH6ObhUQgQMiRsu9Q4MftNrouF0wRk+nd5oREVXd3Cp4qzRREbzG/ 1qVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yd21Ne0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si773422ejw.454.2020.04.20.20.22.27; Mon, 20 Apr 2020 20:22:50 -0700 (PDT) Received-SPF: pass (google.com: 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; dkim=pass header.i=@kernel.org header.s=default header.b=Yd21Ne0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727019AbgDUDVZ (ORCPT + 99 others); Mon, 20 Apr 2020 23:21:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:38804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbgDUDVZ (ORCPT ); Mon, 20 Apr 2020 23:21:25 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (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 11A86206F9; Tue, 21 Apr 2020 03:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587439285; bh=xEmUHAOoyZcRhEoFa4R3C3VggYvh9vMG39wtbPGgH1s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yd21Ne0fDGlsG9hDF1efk/I564yGFpzgFZFsP1yBrZAVAz5nMXJ49sQTAqfnuRauF K4AIlzKFC8Fm2XVUUY2lL+xgOjxMvqxl0awzBrCWD/sUH3aEpbyM/4y0rlcmf8VLqu bTJ3cC3JKi5NI3xiVwEJxcK++wkD7P9AmlbIh+EE= Date: Tue, 21 Apr 2020 11:21:17 +0800 From: Shawn Guo To: Ahmad Fatoum Cc: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Rouven Czerwinski , stable@vger.kernel.org, Clemens Gruber , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: imx: provide v7_cpu_resume() only on ARM_CPU_SUSPEND=y Message-ID: <20200421032116.GD8571@dragon> References: <20200323081933.31497-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200323081933.31497-1-a.fatoum@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) 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 Applied, thanks.