Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3474583pxu; Sun, 11 Oct 2020 11:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2+yERwXimwmAtlmwlTs3tDyZEGvax/8KzxqazNUXo6MuvDAV9b8Uc4a118pIS2uNwe4R8 X-Received: by 2002:a17:906:5509:: with SMTP id r9mr25401897ejp.12.1602439215539; Sun, 11 Oct 2020 11:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602439215; cv=none; d=google.com; s=arc-20160816; b=UhU3oZ+dysBugy5ZfiJBEHHcXUPHyYryZlBEtrSgLdaw3JxOXOejwQ+Ckoc9RH/EFn BWduyjkgoDGaRfmfMmvVIgvXA35gHK2aWh9Z+2Y+Txvhj8AoTbRTWZ2CXkF6gTb3QoLB bcSdzCGm9jYpDK3iPgS51t0qGEOvO23dqwKX2ulkQ8+2ZGV71bVLV1pH7+7R3cikCpqI L/595WwJUkyJB0P4k4MDNMT+a26o8waPNJtdUUYlw+Q5L85KaX8ZUiewAnDPj70qI63F 0MAUIHbS5CHM8lzgVLm2rRZVmBVZoMib/f0vRpWSq5eBmswQRvOpaM+cw9jWVDeQhftH DkXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=/+BgutAph/7mWqQiItsGnE7ye1b+LayfBv+ZLKTuw7A=; b=eKQXJpngTMUiwtwjZxuRrE/uCbL565jo1g1Jiev/NrH/UZLZ/PelJaHIo9oKG8FVr0 EWrmDE5UZ2uIiBnuHGCOgbrCCSGAtepkRQxAjr4QEcpAk0odE1YQzaG0DNiNtTiPKM4j 79SV9PwrBuhTKCSvRNd+WAs5D6FBejTaRZOZMzjowZdat3xPmz+PEC42ADS/+9EyqAvc mFYwU7xNhLt9jICBswo0kAggBq1Amo0sVrn5KXaGUXJ53cK27Fy4lukUpvOVM1wjoZz1 s46F/r7h1OUrDZ18QjZiKy4DGKytHdxhNeWs2HhJCAfAqLQb18IVG+8TARK/LQm3dWew CxHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si1706200edz.115.2020.10.11.10.59.52; Sun, 11 Oct 2020 11:00:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729457AbgJJXsF (ORCPT + 99 others); Sat, 10 Oct 2020 19:48:05 -0400 Received: from mail.loongson.cn ([114.242.206.163]:36518 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726353AbgJJXsC (ORCPT ); Sat, 10 Oct 2020 19:48:02 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxGMQrSIJfLfobAA--.13680S3; Sun, 11 Oct 2020 07:47:55 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Jonathan Corbet , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Xuefeng Li Subject: [PATCH v2 1/4 RESEND] MIPS: Loongson64: Select SMP in Kconfig to avoid build error Date: Sun, 11 Oct 2020 07:47:51 +0800 Message-Id: <1602373674-4579-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1602373674-4579-1-git-send-email-yangtiezhu@loongson.cn> References: <1602373674-4579-1-git-send-email-y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0_Jr0_Gr1lIxAIcVC2z280aV CY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUUXyCJUUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the current code, CONFIG_SMP can be set as N by user on the Loongson platform, then there exists the following build error under !CONFIG_SMP: CC arch/mips/kernel/asm-offsets.s In file included from ./include/linux/gfp.h:9:0, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:18, from ./include/linux/fs.h:15, from ./include/linux/compat.h:17, from arch/mips/kernel/asm-offsets.c:12: ./include/linux/topology.h: In function 'numa_node_id': ./include/linux/topology.h:119:2: error: implicit declaration of function 'cpu_logical_map' [-Werror=implicit-function-declaration] return cpu_to_node(raw_smp_processor_id()); ^ cc1: some warnings being treated as errors scripts/Makefile.build:117: recipe for target 'arch/mips/kernel/asm-offsets.s' failed make[1]: *** [arch/mips/kernel/asm-offsets.s] Error 1 Select SMP in Kconfig to avoid the above build error and then remove CONFIG_SMP=y in loongson3_defconfig. Signed-off-by: Tiezhu Yang --- v2: no changes arch/mips/Kconfig | 1 + arch/mips/configs/loongson3_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b557fa5..75f26d1 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -488,6 +488,7 @@ config MACH_LOONGSON64 select SYS_SUPPORTS_ZBOOT select ZONE_DMA32 select NUMA + select SMP select COMMON_CLK select USE_OF select BUILTIN_DTB diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig index a5005c8..38a817e 100644 --- a/arch/mips/configs/loongson3_defconfig +++ b/arch/mips/configs/loongson3_defconfig @@ -30,7 +30,6 @@ CONFIG_EMBEDDED=y CONFIG_PERF_EVENTS=y CONFIG_MACH_LOONGSON64=y CONFIG_CPU_HAS_MSA=y -CONFIG_SMP=y CONFIG_NR_CPUS=16 CONFIG_HZ_256=y CONFIG_KEXEC=y -- 2.1.0