From patchwork Mon Mar 20 23:13:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 72522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1486912wrt; Mon, 20 Mar 2023 16:24:08 -0700 (PDT) X-Google-Smtp-Source: AK7set+utynzq7sMq+DhDWFB4gdfFMTCN21XBxu5VrEc0/ybGZxNPYeay1LoIERDYSAC13UlQs6D X-Received: by 2002:a17:90b:384e:b0:23f:2d4d:7f8c with SMTP id nl14-20020a17090b384e00b0023f2d4d7f8cmr407787pjb.4.1679354647851; Mon, 20 Mar 2023 16:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679354647; cv=none; d=google.com; s=arc-20160816; b=TNq4H3ehyXJlYiYdmY2B0hvo6DGibmF6IdzVZYyRRON+ru5YG9XpK0DWhcy1QLWydC Qjm4DbICG3URi7cq8T3S1NllN3ZLzZkcycZ/hl0wa42jfwfOBQO0r3jJg+pmNjeWy9gu stamTsRgnYy0uKo8iPmT7hnD33O1kkG6yqe6jD6Ymv26O9YtubxROEspnUDD5ZYAFFax F/vCPUXeistfm2QaynO9N0dbmN1AaGoDKUQpWoxIwcNTVycfecpha9pTD1riSrKjM8oK mVX6GfcKRYoLcL/Qxup/9x6QhlVKt4QnuLq8BG20VVH3VKyLOEvduXDqS+zbUHuyrFgB JMbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VBdK0/Y4JqBgPMxacPgxZ9ztvbW86iUY79ITNsMQ6C8=; b=m7PfN56HqXkFO/W6OLyYpwrCx8nTBJQLndrVbmKiIx+hSxXkCN+35227OXJY0VUiot KNJDdMYptLn7OhDnLBN92+SD4fG83qamiYvjycezyBfThoCmHLNq001yQdIDUdIx7dM5 CkncvPtzaOk91XmmEzF/IDxtSh0pCZX0cy/MIff6vIdFNXzMnOq+0YUZsY3gU9jPY5gJ kBrf4X5CAt3MaHGEvvwWKQIjDV83Rko8V/TYPh2epbeKlxNXoZ1SayoTqF8sh3yL+uwd XANm7mNcN63zAm68FSAU/1mSIhY/8Aj+Cs2eKqdWF49xML2wguJWDuWfnqXzeqQLbqea r3QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KeaDk1eT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x65-20020a17090a6c4700b00233e9243c88si16864233pjj.187.2023.03.20.16.23.55; Mon, 20 Mar 2023 16:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KeaDk1eT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjCTXNX (ORCPT + 99 others); Mon, 20 Mar 2023 19:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbjCTXNU (ORCPT ); Mon, 20 Mar 2023 19:13:20 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85BD434C0C; Mon, 20 Mar 2023 16:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=VBdK0/Y4JqBgPMxacPgxZ9ztvbW86iUY79ITNsMQ6C8=; b=KeaDk1eTpGWhCEvi/fOy/KW+mV Yj1EzTN1s1jEKgM1aUneB5PVBdgtOLsO8O3e2TTwfWOggZd2TFr0D2XKquZtSIOnpfchSaif4+hCP RkACncjUU4NkgE8bJ5GXTk698BqcfOrpQRk6mQdlwkUajGCqsnXHiGWUBSkO2lTPJy/xC5SCkYN3u 73g2+E8HWFGKqSrlFsTZTeQpx8xWV8g1giW5efCg5Gwizm0HkkvxEFiJhXXWVHjySxnvkFOOtGY6h jJpXGi+X0dg/v5N6ZZA87/kFKQGqGqRBltNMbdjHh3c+XMdVpM8kNgl+jmJegRghVGzi/GwpsCT0r Bu4QGKBQ==; Received: from [2601:1c2:980:9ec0::21b4] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1peOgh-00Al4N-29; Mon, 20 Mar 2023 23:13:11 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Geert Uytterhoeven , John Paul Adrian Glaubitz , Yoshinori Sato , Rich Felker , Kuninori Morimoto , linux-sh@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 6/7 v5] sh: fix Kconfig entry for NUMA => SMP Date: Mon, 20 Mar 2023 16:13:10 -0700 Message-Id: <20230320231310.28841-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759590066753344676?= X-GMAIL-MSGID: =?utf-8?q?1760930978947475171?= Fix SUPERH builds that select SYS_SUPPORTS_NUMA but do not select SYS_SUPPORTS_SMP and SMP. kernel/sched/topology.c is only built for CONFIG_SMP and then the NUMA code + data inside topology.c is only built when CONFIG_NUMA is set/enabled, so these arch/sh/ configs need to select SMP and SYS_SUPPORTS_SMP to build the NUMA support. Fixes this build error in multiple SUPERH configs: mm/page_alloc.o: In function `get_page_from_freelist': page_alloc.c:(.text+0x2ca8): undefined reference to `node_reclaim_distance' Fixes: 357d59469c11 ("sh: Tidy up dependencies for SH-2 build.") Fixes: 9109a30e5a54 ("sh: add support for sh7366 processor") Fixes: 55ba99eb211a ("sh: Add support for SH7786 CPU subtype.") Signed-off-by: Randy Dunlap Reported-by: Geert Uytterhoeven Cc: John Paul Adrian Glaubitz Cc: Yoshinori Sato Cc: Rich Felker Cc: Kuninori Morimoto Cc: linux-sh@vger.kernel.org Cc: stable@vger.kernel.org --- v2: skipped v3: skipped v4: refresh & resend v5: include CPU_SUBTYPE_SH7785 in this patch (Adrian) arch/sh/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff -- a/arch/sh/Kconfig b/arch/sh/Kconfig --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -442,6 +442,8 @@ config CPU_SUBTYPE_SH7785 select CPU_SHX2 select ARCH_SPARSEMEM_ENABLE select SYS_SUPPORTS_NUMA + select SYS_SUPPORTS_SMP + select SMP select PINCTRL config CPU_SUBTYPE_SH7786 @@ -476,6 +478,8 @@ config CPU_SUBTYPE_SH7722 select CPU_SHX2 select ARCH_SHMOBILE select ARCH_SPARSEMEM_ENABLE + select SYS_SUPPORTS_SMP + select SMP select SYS_SUPPORTS_NUMA select SYS_SUPPORTS_SH_CMT select PINCTRL @@ -486,6 +490,8 @@ config CPU_SUBTYPE_SH7366 select CPU_SHX2 select ARCH_SHMOBILE select ARCH_SPARSEMEM_ENABLE + select SYS_SUPPORTS_SMP + select SMP select SYS_SUPPORTS_NUMA select SYS_SUPPORTS_SH_CMT