Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596740lkb; Mon, 11 Oct 2021 09:39:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytZjcQZE9E3el+9suIPhlGelNW2KiREPYmllWL/fZ3euI4STnU6CtBvPA9/HIwhVhr/viS X-Received: by 2002:a17:90a:d3d6:: with SMTP id d22mr9699pjw.242.1633970357083; Mon, 11 Oct 2021 09:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970357; cv=none; d=google.com; s=arc-20160816; b=NhGoiYT82fRrOV31yiy2bTw8wM39tSvhL37bIW7lnKiYkVcZB7NYihQArL+25UbCs9 9zFhsoNzfadfQ+SiWJluhZwHm50V7d3tDUZI88pncNZ/SLAgNUZuqrOFHyBbQPVc2OJy n3BiocHbcDd+BO1IZ+9SYqANAjs/ZzdIUY/foXtXAeppPL4NDciw5VkK/RKRfpdOEveE ouIK4Mrh7Ei2J8b1NbgggI58t1DhTaTx6akuAYlg6qenvjq+L+1NrkelYpdB7LKd5HF3 +Zp3vWxfSf4MEZDFGUuF+Mo4TcUJQKUOOKVOn2pbjGHPt5EMXeq+AWX1s+2SBWuIUF2n 7t1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=v14srFNknGuAO30T8HiaYwE8WcTgmQqk9mkiQCL+Ukc=; b=ie5ZAPS1JpNpvOBebHud7zu2GK7g/jtQvVzN9BfTvR3jqyJfR6++0G0jp+ZsjsVi3v ad4Ya7Jl3P1L2n/zYKwch2LpozExKaYiB06EHJUnBe9uB+Np3ZH/oiJnhF1GCSQ8/nGC AZBskP3Q5r9m73at4ic8EyfpU4jABhgr+Vr513Ujs5KZScxOskIw6Qh3sxBlz9ClE45N v+/lS//pW/veAmTBsrri9FGs3J9gnWLnzcI2uAj2w7bb3aLnEQnTL0K0aVjiovj6Ici9 ylmB66h5rc7BXpet/hISjYxwcqQFTZ4Rzz+q3JoWMoOUoJFC06O1QQ9mcBYlHxvsQqv5 Snhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gPAisVbS; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v191si10520989pgd.610.2021.10.11.09.39.04; Mon, 11 Oct 2021 09:39: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=k20201202 header.b=gPAisVbS; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243037AbhJKOTs (ORCPT + 99 others); Mon, 11 Oct 2021 10:19:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:40040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242540AbhJKORD (ORCPT ); Mon, 11 Oct 2021 10:17:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E2846136F; Mon, 11 Oct 2021 14:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633961179; bh=w5y83sNdnzbd+RwMEcSG5seR5+ET5nOWfWBbqyRe1VE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=gPAisVbSkBEsYzvJp0KAUnFr1V8Z2cxEttLZOXj6pngV3I1BGyRsCjkMJttU3VOzh SU9HsBp3hHX92euYETfkqvSj4Jk8JPh7bKSOCXm3bZo9aprA0nC4KpitkLY5Mihgdt K4rgBiYjXyl/jVycnW2VWo0ttFPaNnMc71qfICE8dmk7Oqz59hxnyoPWLEbO9HP7oD ASCZx0J5rPrRQYyLHQLvqNXRzDUAWWRKCjD7TzvLl8NZR31r/1n/YQ5eytGw4E1Wfj 3eXP1PftwXR6Fyw7CdiDDIvB4QZqzSHsTCeOoscwemo4vRwzkZISEkiWbUIE+5QD8z IJ6UOiB6ACa+g== Date: Mon, 11 Oct 2021 09:06:17 -0500 From: Bjorn Helgaas To: Max Gurtovoy Cc: Greg Kroah-Hartman , hch@infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, stefanha@redhat.com, oren@nvidia.com, kw@linux.com Subject: Re: [PATCH v3 2/2] PCI/sysfs: use NUMA_NO_NODE macro Message-ID: <20211011140617.GA1643826@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 10, 2021 at 11:36:49AM +0300, Max Gurtovoy wrote: > > On 10/9/2021 1:25 AM, Bjorn Helgaas wrote: > > On Mon, Oct 04, 2021 at 04:34:53PM +0300, Max Gurtovoy wrote: > > > Use the proper macro instead of hard-coded (-1) value. > > > > > > Suggested-by: Krzysztof Wilczyński > > > Reviewed-by: Krzysztof Wilczyński > > > Reviewed-by: Stefan Hajnoczi > > > Signed-off-by: Max Gurtovoy > > These two patches are independent, so I applied this patch only to > > pci/sysfs for v5.16, thanks! > > > > I assume Greg will take the drivers/base patch. > > I saw both patches in his > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > driver-core-next > > So I guess there is no need for taking it separately, right Greg ? No problem, I dropped the pci-sysfs.c patch. Thanks for letting me know! > > > --- > > > drivers/pci/pci-sysfs.c | 6 ++++-- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c > > > index 7fb5cd17cc98..f807b92afa6c 100644 > > > --- a/drivers/pci/pci-sysfs.c > > > +++ b/drivers/pci/pci-sysfs.c > > > @@ -81,8 +81,10 @@ static ssize_t pci_dev_show_local_cpu(struct device *dev, bool list, > > > const struct cpumask *mask; > > > #ifdef CONFIG_NUMA > > > - mask = (dev_to_node(dev) == -1) ? cpu_online_mask : > > > - cpumask_of_node(dev_to_node(dev)); > > > + if (dev_to_node(dev) == NUMA_NO_NODE) > > > + mask = cpu_online_mask; > > > + else > > > + mask = cpumask_of_node(dev_to_node(dev)); > > > #else > > > mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); > > > #endif > > > -- > > > 2.18.1 > > >