From patchwork Wed Feb 14 12:17:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 873353 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zhLRQ3N2jz9t5R for ; Thu, 15 Feb 2018 00:51:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="nbPjwhME"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zhLRQ1yCYzF1G1 for ; Thu, 15 Feb 2018 00:51:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="nbPjwhME"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=softfail (mailfrom) smtp.mailfrom=baylibre.com (client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=clabbe@baylibre.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="nbPjwhME"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zhJMb4JR5zF1FS for ; Wed, 14 Feb 2018 23:17:58 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id l43so1242587wrc.2 for ; Wed, 14 Feb 2018 04:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uOK0ZjDyc+eyQDf22iF5+gEe1JZIYLX6v5UfGejlhIs=; b=nbPjwhMEXZKVOK2rc8k++DWbpA3L5rtCLlpeMETQwmqKEKlgAyaegXWa0Z65tDS9Uh Im1d4nC7C8TxEdIwKIJrIWTG/kivEF3/IKbdZALWgn5Gz3D8j8FM/DvA79USfD5kwB8J rzo4pc97EomewUL+KbFuLG6/2p4reBaTlUSVseDk5G5wApsyzFJe7WdueNC79DLceTGr FMTlR2XTtGDp4dXjYzz4AwcmPnBPuhzm58RYsEddCToz0RQVuhLp4+IsgqhojIe7CBkZ mqpCYG4WwifvNFZzHYYQJLVeqk6kqVnhi1+5tbxr+t9MPV6ntIzN5TNTxnPhbT0He1KA evow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uOK0ZjDyc+eyQDf22iF5+gEe1JZIYLX6v5UfGejlhIs=; b=VxMzX8F2s+aK+l3c4aRQjJtKRrlet7FAVOSnHSzjFQNuVuNXgxdA9ELnTADfrU9LQN 9zzRw7pl6ei7SuR6F2SkA+TUEVLciJx6K3YibmyxkGkzkqJWWyhvmsvoowN6/2LxLtfA 5tLChFZ4+yzDb0WuCZA7JakwJRwncJ3KpopnSXKKggtL1EZ6ry5jMb9x7dC8zdfxq7J4 SJHe7cozw/L+40nfcTdVnQgQL4Kdoc0MKxUtETzd7VXelCIUm5nKFxC35nlZFyBcqIIL rONVKEWFyiaiAvodF3sOIJ2bzX6y/i/ulYTWVObpMri0zFjBCJEWrgxzUq9V+oAaYLUX 1ZLw== X-Gm-Message-State: APf1xPCfceH8z0JeKupUyW7AwhIT1DE+iFLuU6valo2NaExEz5YiAO4T 0Kg7TGL/GSV6asWIuYSauZKbJw== X-Google-Smtp-Source: AH8x226drjq95BEb7ntDyrtPsCBbFmrE1EsiuqK0J7kazdQwzor+ZbS/kXfI/yM9PgoX4R+KwBsM3Q== X-Received: by 10.223.134.49 with SMTP id 46mr4093946wrv.262.1518610675711; Wed, 14 Feb 2018 04:17:55 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id s126sm875045wmd.43.2018.02.14.04.17.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Feb 2018 04:17:54 -0800 (PST) From: Corentin Labbe To: benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, nfont@linux.vnet.ibm.com, tyreld@linux.vnet.ibm.com Subject: [PATCH] powerpc: add empty update_numa_cpu_lookup_table for !CONFIG_NUMA Date: Wed, 14 Feb 2018 12:17:47 +0000 Message-Id: <1518610667-23406-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 15 Feb 2018 00:49:02 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Corentin Labbe Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" When CONFIG_NUMA is not set, build fail with: arch/powerpc/platforms/pseries/hotplug-cpu.c:335:4: error: déclaration implicite de la fonction « update_numa_cpu_lookup_table » [-Werror=implicit-function-declaration] So we have to add update_numa_cpu_lookup_table as an empty function when CONFIG_NUMA is not set. Fixes: 1d9a090783be ("powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove") Signed-off-by: Corentin Labbe --- arch/powerpc/include/asm/topology.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index 593248110902..9f421641a35c 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h @@ -81,6 +81,9 @@ static inline int numa_update_cpu_topology(bool cpus_locked) { return 0; } + +static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} + #endif /* CONFIG_NUMA */ #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR)