Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3643325imm; Mon, 18 Jun 2018 01:25:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJMS/uOhAal3l9mF6F6M6LMM5ATwV06/Fbj5VZYKhYJvIxMfipQ3ktnFX30Kn7QrikR2Y2Z X-Received: by 2002:a63:bf0b:: with SMTP id v11-v6mr9833606pgf.29.1529310340538; Mon, 18 Jun 2018 01:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529310340; cv=none; d=google.com; s=arc-20160816; b=GHs3gJo+QCEJXViICLKxm0KMTHFo/qLvQKknB7+yS2O2bm62YohW22oru3q2OR6B06 HUhbeocgy/JgxQ835jf7FyciKz8eQQnUkEMjdRCrHqa/mBubWh6Vs5bPZ0i7L2DOCj7j jGP9ECDVzTdWsZX0lCNVIjl2QyKlpHgW/osTGzJiZb1jqXvaQ6l0plCpgZlgJW7DQLPh wClCjKMcFPZB+KtROyUV1C7uhnOZsbqH7wLaa6q6FpLLK8LSycFqPGWrm41lqMRSdMEO w88ZTNpZt3cZtvIdrEwhgU73ogSg9h7FN4NXEM0X4Lg43YBQubODPVRcp2q3N3pbX42t Vucw== 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=E1kgx+UNPv5IwdtemDFgB6TGCjKpZ7Gr4UQyIaZ8jBU=; b=tuyv3ibU4Q03Q1YzI0VU9ctRrIWsElW82WRxPeC/GOPn6w9Uum68U/XvtE7j4vkrMT MhPrEOQ6Igpbgfbh4+ROqbpCQ11JY8uZYNV6bGjkuLZhVcnRl2Wv/VtT9i8kYPkIsRjA 0gKrPPER4TiEdnsk6tPafkP1TrolvBXABDs5mseHf/bVRsgLdaTcqguwtmGHwHxTRXv6 cZ8ZE+zfl1kdyL8g9n3OVjfMbw6zWAmpHRkNhtxqWOFJnbmoI1YDllzasItjzkaZHHaA y3Wy8XkXHsHKtt2HAxmWtxJhhuNxpUxpyvWa/93StKJ8Oc+ors6qDA1KoBsOVw0WC67V Vruw== 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 z4-v6si14992645pfl.31.2018.06.18.01.25.27; Mon, 18 Jun 2018 01:25:40 -0700 (PDT) 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 S936315AbeFRIYx (ORCPT + 99 others); Mon, 18 Jun 2018 04:24:53 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56122 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936245AbeFRIYv (ORCPT ); Mon, 18 Jun 2018 04:24:51 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 93422C5C; Mon, 18 Jun 2018 08:24:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 4.16 204/279] powerpc/pseries: Fix CONFIG_NUMA=n build Date: Mon, 18 Jun 2018 10:13:09 +0200 Message-Id: <20180618080617.337523186@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@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.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Ellerman [ Upstream commit 6c0a8f6b5a45ac892a763b6299bd3c5324fc5e02 ] The build is failing with CONFIG_NUMA=n and some compiler versions: arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_online_cpu': hotplug-cpu.c:(.text+0x12c): undefined reference to `timed_topology_update' arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_cpu_remove': hotplug-cpu.c:(.text+0x400): undefined reference to `timed_topology_update' Fix it by moving the empty version of timed_topology_update() into the existing #ifdef block, which has the right guard of SPLPAR && NUMA. Fixes: cee5405da402 ("powerpc/hotplug: Improve responsiveness of hotplug change") Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/topology.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h @@ -91,6 +91,7 @@ extern int start_topology_update(void); extern int stop_topology_update(void); extern int prrn_is_enabled(void); extern int find_and_online_cpu_nid(int cpu); +extern int timed_topology_update(int nsecs); #else static inline int start_topology_update(void) { @@ -108,16 +109,12 @@ static inline int find_and_online_cpu_ni { return 0; } +static inline int timed_topology_update(int nsecs) +{ + return 0; +} #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */ -#if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_NEED_MULTIPLE_NODES) -#if defined(CONFIG_PPC_SPLPAR) -extern int timed_topology_update(int nsecs); -#else -#define timed_topology_update(nsecs) -#endif /* CONFIG_PPC_SPLPAR */ -#endif /* CONFIG_HOTPLUG_CPU || CONFIG_NEED_MULTIPLE_NODES */ - #include #ifdef CONFIG_SMP