Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2636694pxa; Mon, 17 Aug 2020 15:06:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwubp35ICSr6UHTuWjFkYkbCMoQFdIudwIYOb0inZjeyfhCqgCe7NHzoKVmCBbW6ckpYur4 X-Received: by 2002:a17:906:ca8c:: with SMTP id js12mr17674748ejb.195.1597701973060; Mon, 17 Aug 2020 15:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597701973; cv=none; d=google.com; s=arc-20160816; b=IMQZ+BkKp28/w4dTkUJ5LZTYKwV0DncDk8lA2Os+m18aPeiBOi8PRi71hefmFJbsGJ 6bwFHGJE30vqLkxMQ9wbsd8T2gEovskZcV4cod1DhmydjHLAhuBauXP23SoxILFTmoYF EjNR0Hby2V/7Y3vhZQk6D9aIap8KluASLQucKfsIOV1nuZKCko85T7KgBqutSX1SuCO0 u3P953MQoyGoSE+W/6Wr+VvMm/HH0tsQJkBhmkWAW0eITFQv/B5I3HbajoQta54Y9E/c /3HPe8GZT8EakzcsUPl5BSrp8YbVecyKhQV+CeOvatFsQImCMSW6gC6H9aSDb8XHZJMd aDuA== 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=v4QtgD1/MrASzIJewISIrsPJ/emGmZJV9aB3qgj/9So=; b=Cvr33AOdQXyJbXfVNO2EgXynCLNDuK6kxFFNusP2VfxxkoK6Tt4WIV8oH9rj2PABFk WKLWS95usjChfYpkaW718+Tfvp/GiVJF/VgL2aitw0n7Te+DjMQCGSlPN0yrPqT6UY5K 9QLaRqp62e4mBeT2I1jKH9ZxZzFSaq8HRfSQAFXTTaDeYE2GfdBqTcl/8nBEQgAu9SK7 1q33sqtYcByVJLu5V8SCaBztYysrL9nnZhlISqqMm9FXcwDipkKF3p663zjYECxc5T+a r6sMnDoc9gsnbu74eTzVjX88G2S4a0JI/NiDeYuhcwHRieCMozxc4QR2oMt0f2j4V+dl Lucg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uCtDGdM9; 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 b12si11541687edf.20.2020.08.17.15.05.49; Mon, 17 Aug 2020 15:06:13 -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=uCtDGdM9; 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 S2387839AbgHQPwR (ORCPT + 99 others); Mon, 17 Aug 2020 11:52:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:49716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730674AbgHQPkl (ORCPT ); Mon, 17 Aug 2020 11:40:41 -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 02552207FF; Mon, 17 Aug 2020 15:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678837; bh=kLRldtUwC7t3HFPXhNORNdUQOkvhyX8mWGlBQq4PcV0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uCtDGdM99oT2GD53EQUG75o7x8bHXdgt5QA+QtIEznXnIavMY+aMbWvw2XxbOSoy9 2minu+mEDqYp3s9PqtuEwlY6ZOJDcpMr1+fnIjs1D5mhdU4oubs1hpaj3FaRNUtFbE 3fzCi5GIzR8JCengttVQQm7r0kdrjH0L0cyv0IOk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Gordeev , Heiko Carstens Subject: [PATCH 5.8 458/464] s390/numa: set node distance to LOCAL_DISTANCE Date: Mon, 17 Aug 2020 17:16:51 +0200 Message-Id: <20200817143855.712919334@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@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: Alexander Gordeev commit 535e4fc623fab2e09a0653fc3a3e17f382ad0251 upstream. The node distance is hardcoded to 0, which causes a trouble for some user-level applications. In particular, "libnuma" expects the distance of a node to itself as LOCAL_DISTANCE. This update removes the offending node distance override. Cc: # 4.4 Fixes: 3a368f742da1 ("s390/numa: add core infrastructure") Signed-off-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman --- arch/s390/include/asm/topology.h | 6 ------ 1 file changed, 6 deletions(-) --- a/arch/s390/include/asm/topology.h +++ b/arch/s390/include/asm/topology.h @@ -86,12 +86,6 @@ static inline const struct cpumask *cpum #define pcibus_to_node(bus) __pcibus_to_node(bus) -#define node_distance(a, b) __node_distance(a, b) -static inline int __node_distance(int a, int b) -{ - return 0; -} - #else /* !CONFIG_NUMA */ #define numa_node_id numa_node_id