From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754278AbeBNFnz (ORCPT ); Wed, 14 Feb 2018 00:43:55 -0500 Received: from ozlabs.org ([103.22.144.67]:55995 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751951AbeBNFnx (ORCPT ); Wed, 14 Feb 2018 00:43:53 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 82343484a2d4c97a03bfd81303b5493c65f05c50 In-Reply-To: <1518474848-3158-2-git-send-email-linux@roeck-us.net> To: Guenter Roeck , Benjamin Herrenschmidt From: Michael Ellerman Cc: linux-kernel@vger.kernel.org, Michael Bringmann , Paul Mackerras , Nathan Fontenot , linuxppc-dev@lists.ozlabs.org, Guenter Roeck Subject: Re: [2/2] powerpc/pseries: Declare optional dummy function for find_and_online_cpu_nid Message-Id: <3zh7ch49bHz9t6D@ozlabs.org> Date: Wed, 14 Feb 2018 16:43:48 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-02-12 at 22:34:08 UTC, Guenter Roeck wrote: > Commit e67e02a544e9 ("powerpc/pseries: Fix cpu hotplug crash with > memoryless nodes") adds an unconditional call to find_and_online_cpu_nid(), > which is only declared if CONFIG_PPC_SPLPAR is enabled. This results in > the following build error if this is not the case. > > arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_online_cpu': > arch/powerpc/platforms/pseries/hotplug-cpu.c:369: > undefined reference to `.find_and_online_cpu_nid' > > Follow the guideline provided by similar functions and provide a dummy > function if CONFIG_PPC_SPLPAR is not enabled. This also moves the external > function declaration into an include file where it should be. > > Fixes: e67e02a544e9 ("powerpc/pseries: Fix cpu hotplug crash with ...") > Cc: Michael Bringmann > Cc: Michael Ellerman > Cc: Nathan Fontenot > Signed-off-by: Guenter Roeck Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/82343484a2d4c97a03bfd81303b549 cheers