Received: by 10.223.185.116 with SMTP id b49csp278953wrg; Tue, 13 Feb 2018 21:44:58 -0800 (PST) X-Google-Smtp-Source: AH8x225YATfRrw3WII0b+B3LaUXKTnp3xRaDkj89C5cX8poQJkNpZNzCEVnEtr8DreU8XL89baaK X-Received: by 10.98.103.83 with SMTP id b80mr3643284pfc.12.1518587098761; Tue, 13 Feb 2018 21:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518587098; cv=none; d=google.com; s=arc-20160816; b=PjQxzopm1vQmuWMxnP/8QXWEmpA15wzAX721VxKrpTflJJQeksvy23eHTA/q5je9Lo QMmUrnEbJ3EVvae4q3Ya0DwmFyaQ/N7h5jx04WJT+2xgJ5YleOHinvnAXMDOdCqbcRRO LyL7HqtIkM/sBAfzF+I0II6VfYlHJx+l5Elmuuzg5fhZ4G+i1K4OhI3nUtUT9FPNRS5/ tUBtsF9gIvIbo1jJjpy493rx6cSocS0Q4XSNVzA68BoNdfe1rlO+fI/gKGHZkcy9z6PR lb4ooC/SsdJIJoDrBbSzlpcgnkeTh4eboPWvjClyfvxVoN69cyizJaeyOpDsta2hPgKw N+mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=nO8MB5VbnNehCdDd1U3mva/qt8ZxBx73/rrfZBLn0HM=; b=UwkTsP3Oqd9Oc8Y8UXCQT37saxVahB7OFir0dKAfi8Gxt0K38U/2Ys2Vgj/9pDpJPi vzs7egIFdvqO8d4bpx6xFQJrPoMMmPse0HHQv7hXFtEzrS/cjpdzADnukbXLrhzDR98n mWGrm1ezWO/RDj23BJsAfhwdx5QByJs6kznGNc7BmmqUFpAugraqclW6SZiftE6Bs1a3 XRnGAoto08rHydzQEvSSb8Bt2fg38tREA4TAvRE1c0e3qgYrKwpLzopz2laY83skuJZV NgRrP6tci68EfveQ8TuSNlIRrkMteTfq6W45oU33PTS2bdTWS6X7QgdxA9AoBspd1eSK FtLg== 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 a89si1099312pfg.329.2018.02.13.21.44.44; Tue, 13 Feb 2018 21:44:58 -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 S1754275AbeBNFny (ORCPT + 99 others); Wed, 14 Feb 2018 00:43:54 -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 Received: by ozlabs.org (Postfix, from userid 1034) id 3zh7ch49bHz9t6D; Wed, 14 Feb 2018 16:43:48 +1100 (AEDT) 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 Precedence: bulk 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