From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478AbdGJKxC convert rfc822-to-8bit (ORCPT ); Mon, 10 Jul 2017 06:53:02 -0400 Received: from ozlabs.org ([103.22.144.67]:53747 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387AbdGJKxA (ORCPT ); Mon, 10 Jul 2017 06:53:00 -0400 From: Michael Ellerman To: Joel Stanley , "Gautham R . Shenoy" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] powerpc/powernv/idle: Put pnv_cpu_offline behind HOTPLUG_CPU In-Reply-To: <20170703040152.5144-1-joel@jms.id.au> References: <20170703040152.5144-1-joel@jms.id.au> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Mon, 10 Jul 2017 20:52:58 +1000 Message-ID: <878tjwva0l.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joel Stanley writes: > In commit 900612315788 ("powerpc/powernv/smp: Add busy-wait loop as fall back > for CPU-Hotplug") the idle code uses generic_check_cpu_restart(), but that > function is not available when CONFIG_HOTPLUG_CPU is disabled. > > arch/powerpc/platforms/powernv/idle.c: In function ‘pnv_cpu_offline’: > arch/powerpc/platforms/powernv/idle.c:286:11: error: implicit declaration of > function ‘generic_check_cpu_restart’ [-Werror=implicit-function-declaration] > while (!generic_check_cpu_restart(cpu)) { > ^~~~~~~~~~~~~~~~~~~~~~~~~ > > The callers of pnv_cpu_offline are behind CONFIG_HOTPLUG_CPU, so fix the build > error by putting this code behind the same gard. > > Fixes: 900612315788 ("powerpc/powernv/smp: Add busy-wait loop as fall back for CPU-Hotplug"). > Cc: # 4.12 > Signed-off-by: Joel Stanley This was fixed upstream in commit 67d204180886, but I forgot to tag it for stable. https://git.kernel.org/torvalds/c/67d204180886 I've just sent mail to stable asking for it to be backported to 4.12. cheers