Received: by 10.223.185.116 with SMTP id b49csp1014432wrg; Wed, 21 Feb 2018 10:35:00 -0800 (PST) X-Google-Smtp-Source: AH8x226sBFqNa9OeY/TKOX+YpjxWi7asVajveTc5csX+ppzaxCs2WysSyGH5LF3lVSp1GpXTgat9 X-Received: by 10.99.36.70 with SMTP id k67mr3526656pgk.48.1519238099989; Wed, 21 Feb 2018 10:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238099; cv=none; d=google.com; s=arc-20160816; b=tRr7HH487EwDA2/zfJ17/OfLsw2aO3UzoKTb4ZsOV2Me04PlMBU8iF9IaWuFyDpd0O Qjr9RxX8PAHz5kne3DAoJVy1TA61PF6eiAKmveA6XkIpaiWXFK9YCysS0y2nnH8AYW3e jn+fThmSR4Hv5Tc9HPsF2IQ3flQGGfPLWs2zZz+9ecslMaKO8KXoy5aqxSsNL4qMfSPZ l2fzN/pRQ/avcYvuOUCDQ95Jct+oGrdZ6EGwqlN9BuzsQUCJEz0iDPZY+4fYkJ0Vx61S LxCq6YxaqXdmzA12Kn+chr96cum4dbE5qd66GD8KFniKxK9wToHwCyQuYctrBrRzADjb RkfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YE8RsRqJ1A1rPlq27eqCT9C8RLBU4+CluCMfTPjZydM=; b=vX5SqNv8zz/qL7SHeNV0dZrm0R7sEpxPQrnOKAk1JrDchcCnzfx6rNKZHHPvp4f2x+ GG1rpuiN0M+/UrZHkt15n4PFd1l2I6+hLBkIVGOGnskqcweylpNxYov16i4J4JHljc7P vS1HT3OrY9AVqtVCs6qAWOJo9RuMd6QrNmx/b9bv5lLMmMqD25Cn8yr2blubJm27yHQn HSmK3xzpJ5Sa2XkKNdEAbDmu7pux83xzRJaYKE2rfQe6vBg84unMOkImDu8MH7/AwOD0 NRKAhdd84+NDVfU/sG2T4sVjhde95odRERuLpbGXpJC/19NRVuCSCRw6C9k7+qqNEUis zAaw== 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 k186si6126664pfc.265.2018.02.21.10.34.45; Wed, 21 Feb 2018 10:34:59 -0800 (PST) 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 S965340AbeBUNI3 (ORCPT + 99 others); Wed, 21 Feb 2018 08:08:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42376 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933302AbeBUNIZ (ORCPT ); Wed, 21 Feb 2018 08:08:25 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D7B5FF9C; Wed, 21 Feb 2018 13:08:24 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Rafael J. Wysocki" Subject: [PATCH 4.15 056/163] PM: cpuidle: Fix cpuidle_poll_state_init() prototype Date: Wed, 21 Feb 2018 13:48:05 +0100 Message-Id: <20180221124533.550598179@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rafael J. Wysocki commit d7212cfb05ba802bea4dd6c90d61cfe6366ea224 upstream. Commit f85942207516 (x86: PM: Make APM idle driver initialize polling state) made apm_init() call cpuidle_poll_state_init(), but that only is defined for CONFIG_CPU_IDLE set, so make the empty stub of it available for CONFIG_CPU_IDLE unset too to fix the resulting build issue. Fixes: f85942207516 (x86: PM: Make APM idle driver initialize polling state) Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- include/linux/cpuidle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -225,7 +225,7 @@ static inline void cpuidle_coupled_paral } #endif -#ifdef CONFIG_ARCH_HAS_CPU_RELAX +#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_ARCH_HAS_CPU_RELAX) void cpuidle_poll_state_init(struct cpuidle_driver *drv); #else static inline void cpuidle_poll_state_init(struct cpuidle_driver *drv) {}