Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3544718ybz; Mon, 4 May 2020 05:11:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLxJ0/Whjs+aH85zKNPa6HhTbFx+NEuoQXJ9eXmaeRuTTZlFXQJvp51DYFLSbrh4BVf4acV X-Received: by 2002:a17:906:d10b:: with SMTP id b11mr3271382ejz.62.1588594300734; Mon, 04 May 2020 05:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588594300; cv=none; d=google.com; s=arc-20160816; b=QTMLtc8Nr81stfJ4ZnvlMDaMVqB10Cl+uyZghutFFWUfXG3MF2r++txDqLAT5btMRy ohULisY4kXgbUxsh0X74/OGOzPcx7SEQSEP2pyR5FOtjdb4Bv6G72PyklfkUMheXdwPr sQhwu2O6+zABQV2ctF8cbZ4GE0zcpLynpwSEc21q7DORftl3JRvxR0ORjBQY5exLko1W BoBqzJYynXsJ83yUOGdk4gjAD6Px1aGwcRKFP6idhe51mC+oxlRJcralcAZQuhL/RrwS Zkgq2Awg503gkS7Q0hW/Ur+mrtE7oyNO1qsRtskdTyvByBIk6r/kelzdyD6g4oBiryw2 HmaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TzbFMK0GtKekycBtSo8VJeOSOQ0RJvtYJRWaPeEpP3c=; b=Bi4Qpl1ZQYlsJL3FqACC1a18dLR/rGmMCjXB15PPpOGYGAB2e3t1rD0ErRyipacldV g4AKS/MJkkCy9A2rRdgjS9sD1ZSxCZ7kVlXOjMDJMtRDXHzYXIEth3u7KWcKM2/MPEU4 EBiWfkao+IWsxSbfOEWnYySV8vXUslBujPWeY9h/4PSFioLJV09eb9FKPSxpZKcVIi/d /MFwlmWmitoxr0Cz2gsGqgok/e6TJY1uTnr3BG3uU1fyraEoKRdDFd7NZw/tw/vLAb7M 1Zo8Y22ewZdM/tsnTJveCkBJZit2zSrQOvgGu7s0KdN+KlfAb9uUt1DHUS5qbUdvzJaE i+jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TNBXhgt6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si7135559ejj.231.2020.05.04.05.11.17; Mon, 04 May 2020 05:11:40 -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=@gmail.com header.s=20161025 header.b=TNBXhgt6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728713AbgEDMI7 (ORCPT + 99 others); Mon, 4 May 2020 08:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728547AbgEDMI7 (ORCPT ); Mon, 4 May 2020 08:08:59 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3DCC061A0E; Mon, 4 May 2020 05:08:58 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id h26so6517874lfg.6; Mon, 04 May 2020 05:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TzbFMK0GtKekycBtSo8VJeOSOQ0RJvtYJRWaPeEpP3c=; b=TNBXhgt6Cn8nSRpRhR1u+5kO+M8SiVQ70L7owxHviP4rKIzWYmdw0fMILtKSMjboWk SsbgNcUhUvDaOi6gi0H99o9zl0XDjx7Jqf2jC+savmqbelPlfY2OLeeG6oO90+dSaII6 aFelV1LHLnkkamnbva7UOXPIxuPntVlJItefvEIh1dIpIo2mNrK3Z8Qt7cQxYF2RJWqx LxZCJE15438qy33LATDLFso5D0yJwV2qQXUecjnck/HBVNw3DzAOeK2CwTjQh3sPidfJ QVD01g4ph2nOiPeV73tUnQ/nNCjXQqguIHu1jlIHdCD7N4zxoJe12MUZxdEqC8rH7tpo yyvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TzbFMK0GtKekycBtSo8VJeOSOQ0RJvtYJRWaPeEpP3c=; b=eq/u3hz4YBcfQ+pFwpzR9fxSX1cUg2yTMKRkYJT0cPka094T0x61jqU1u2OFZMuqoW 3Aw44AqIkCu8hdQopBluGRnUwy5JXDS1oWr61hqqPiEg3hm3d+dUayAZA95ZSxvuba7O CJkhatsFtASvfFnRGHW2PRMCk8TBS/NB1zGzbmDMHJ71OxoT16VFt8e5hOBK9nqNISJk Q6hagNfHo494sZtPeHZZV53bW5NR90Xw17YUTB1uB6/5RwXDCZMZJHZoFi28hH2A20hc ISLOXHfhz0ehNeHDFKmoVBMVPTXWnykdfvUyHtyCU0rqrrvH5X2K0oOeyPms/MHkzimY KBOg== X-Gm-Message-State: AGi0PuYEpGcbwlRSmGOWcwT2zELLtVqldvSvqzL/nEPstZ0qMrlYPVnS 3mzM2uxeZKQX94f2YLGvQtD+o9KT0jPht82gaa0= X-Received: by 2002:ac2:47ee:: with SMTP id b14mr7357462lfp.91.1588594137445; Mon, 04 May 2020 05:08:57 -0700 (PDT) MIME-Version: 1.0 References: <20191216103522.32215-1-gonsolo@gmail.com> <20191216103522.32215-2-gonsolo@gmail.com> <20191223164220.GA14394@codeblueprint.co.uk> <29b721c1-b5a7-6fc1-4471-f42109d509ed@infradead.org> In-Reply-To: From: Gonsolo Date: Mon, 4 May 2020 14:08:46 +0200 Message-ID: Subject: Re: [PATCH 1/1] Fix undefined reference to 'node_reclaim_distance'. To: Randy Dunlap Cc: Matt Fleming , Geert Uytterhoeven , Yoshinori Sato , Rich Felker , Andrew Morton , Mike Rapoport , Nicholas Piggin , Linux-sh list , Linux Kernel Mailing List 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 Hi! > Yes, it fixes the arch/sh/ build errors in my testing. > I don't have a failing ppc64 .config file to test. As of v5.7-rc4 this patch doesn't seem to have been applied and the build is still failing: http://kisskb.ellerman.id.au/kisskb/buildresult/14067948/ diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 6ec1e595b1d4..bf20e5883026 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1281,7 +1281,6 @@ static int sched_domains_curr_level; int sched_max_numa_distance; static int *sched_domains_numa_distance; static struct cpumask ***sched_domains_numa_masks; -int __read_mostly node_reclaim_distance = RECLAIM_DISTANCE; #endif /* diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4785a8a2040e..733890d913ea 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3523,6 +3523,7 @@ bool zone_watermark_ok_safe(struct zone *z, unsigned int order, } #ifdef CONFIG_NUMA +int __read_mostly node_reclaim_distance = RECLAIM_DISTANCE; static bool zone_allows_reclaim(struct zone *local_zone, struct zone *zone) { return node_distance(zone_to_nid(local_zone), zone_to_nid(zone)) <= -- g