Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1255795pxa; Thu, 20 Aug 2020 06:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNgnvjAib2r9mmvREiAdQXOCSGL+6JUwmThxB84UUYsOY0H77bSoZ244VZt+GVxzxptMYT X-Received: by 2002:a50:af86:: with SMTP id h6mr3079122edd.132.1597931657761; Thu, 20 Aug 2020 06:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931657; cv=none; d=google.com; s=arc-20160816; b=whpThe1aU3MMF4K4udvq8pM6a9Jc3bhRR7qoH3sGFPomQpiOsbScceuGNbggGavLix vZGiXnnS9d+Cs7zh/lkgpyFmt0xCM5popp436WGgjTecTWr6iamr1gh1k1pDpLloQWDO pcpxa+6tXC0qspmFiROxxJ7mDI+C4GXveHK70PMUjuPA3s+8W2F1OTam1Dg9S/1dER9a FRqmQbAJGGLMm3F2H+FTZ68JImKS9M1o4k6Gqbh1s/kS+h/bW03PhKlsev1v4QpNdu0+ vbp2ZkF+319sN0f+IeueYFJ+8cqF17KQkQhoCnA5BqbgrqyxqRtrlig3+hp1edFuYyJo w3bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AMfoboSuEBjVdUFMeQU+C2yzEsjHChcjPEn5ZbJYTA4=; b=gXq6btdo8rK/LrYVTSshF3UCnaAqAtFs/1W1O+Zyzcz/Z0AiB7+mrUd7C/bcUuJrYU V+Ir1FyqhzApIyiCyThTmqmnD83dwm6nKCn5mn2YknGOSPE18yduYeYmDYBerq08cP2o ZeSdA5ZOe1sPrZIeRC6mqTg5neOKSEJJov6+cTR08pOdACw6Z34hBsmrhQVDOR/BLBXD yA3+94vPeGsaDUMg/ZO52jTwZbsqeF0VUdwGg22ciLxj4O5GQdHa/9fd/Ms5PJz9MPbU +x1w8+zgiSgVp4WQUEE9BZjrYlAZFcCunMbK9Fz9YI2X2h6wzltxqgCnL7WOC63Rafqn nxKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AR9yTQHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b31si1329005edf.456.2020.08.20.06.53.53; Thu, 20 Aug 2020 06:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AR9yTQHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730316AbgHTNum (ORCPT + 99 others); Thu, 20 Aug 2020 09:50:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:33584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726919AbgHTJ04 (ORCPT ); Thu, 20 Aug 2020 05:26:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0507322D2A; Thu, 20 Aug 2020 09:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915612; bh=xoF6oG+fF8czt3XFOicaePjWcPHnJQveCnY/OPDHI6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AR9yTQHBWBzisYHt6wTHyvbEoJTLMepIbaOfOhB6OAeZU0gJosI3ouf3+2OVlalTg +ZoZu/g6WvnfN0CYNSQ7kSmvL+Ssrk2rNmLW1FRIS6iuWLgU7goLVcJkVI/433Wkbk utLgkMKPkjuaedfSqDwcezJeMi7mzSbK9lW/OPh0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Mike Rapoport , Thomas Bogendoerfer Subject: [PATCH 5.8 075/232] MIPS: SGI-IP27: always enable NUMA in Kconfig Date: Thu, 20 Aug 2020 11:18:46 +0200 Message-Id: <20200820091616.442618574@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport commit 6c86a3029ce3b44597526909f2e39a77a497f640 upstream. When a configuration has NUMA disabled and SGI_IP27 enabled, the build fails: CC kernel/bounds.s CC arch/mips/kernel/asm-offsets.s In file included from arch/mips/include/asm/topology.h:11, from include/linux/topology.h:36, from include/linux/gfp.h:9, from include/linux/slab.h:15, from include/linux/crypto.h:19, from include/crypto/hash.h:11, from include/linux/uio.h:10, from include/linux/socket.h:8, from include/linux/compat.h:15, from arch/mips/kernel/asm-offsets.c:12: include/linux/topology.h: In function 'numa_node_id': arch/mips/include/asm/mach-ip27/topology.h:16:27: error: implicit declaration of function 'cputonasid'; did you mean 'cpu_vpe_id'? [-Werror=implicit-function-declaration] #define cpu_to_node(cpu) (cputonasid(cpu)) ^~~~~~~~~~ include/linux/topology.h:119:9: note: in expansion of macro 'cpu_to_node' return cpu_to_node(raw_smp_processor_id()); ^~~~~~~~~~~ include/linux/topology.h: In function 'cpu_cpu_mask': arch/mips/include/asm/mach-ip27/topology.h:19:7: error: implicit declaration of function 'hub_data' [-Werror=implicit-function-declaration] &hub_data(node)->h_cpus) ^~~~~~~~ include/linux/topology.h:210:9: note: in expansion of macro 'cpumask_of_node' return cpumask_of_node(cpu_to_node(cpu)); ^~~~~~~~~~~~~~~ arch/mips/include/asm/mach-ip27/topology.h:19:21: error: invalid type argument of '->' (have 'int') &hub_data(node)->h_cpus) ^~ include/linux/topology.h:210:9: note: in expansion of macro 'cpumask_of_node' return cpumask_of_node(cpu_to_node(cpu)); ^~~~~~~~~~~~~~~ Before switch from discontigmem to sparsemem, there always was CONFIG_NEED_MULTIPLE_NODES=y because it was selected by DISCONTIGMEM. Without DISCONTIGMEM it is possible to have SPARSEMEM without NUMA for SGI_IP27 and as many things there rely on custom node definition, the build breaks. As Thomas noted "... there are right now too many places in IP27 code, which assumes NUMA enabled", the simplest solution would be to always enable NUMA for SGI-IP27 builds. Reported-by: kernel test robot Fixes: 397dc00e249e ("mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM") Cc: stable@vger.kernel.org Signed-off-by: Mike Rapoport Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -678,6 +678,7 @@ config SGI_IP27 select SYS_SUPPORTS_NUMA select SYS_SUPPORTS_SMP select MIPS_L1_CACHE_SHIFT_7 + select NUMA help This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics workstations. To compile a Linux kernel that runs on these, say Y