Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4625307ybe; Mon, 16 Sep 2019 15:46:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyllqnNUtHK9oKCf74JB0YDsP4JdJ0VreNYNpXgKf3UVt5xiwZ1voeX2UleVMwxl6iPgMEI X-Received: by 2002:a17:906:7709:: with SMTP id q9mr2216470ejm.286.1568673970488; Mon, 16 Sep 2019 15:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568673970; cv=none; d=google.com; s=arc-20160816; b=BqtbWcfMxcyEDHJifx4IGnQAn17xCIvPNUm53xWQAzrJr7eIwquJ/sQQkk2l8dQRB+ y+ay2jBPEWGP7U5znf8R/djy+LaqKvUvk5FuLy9DDkySorlZcrZ3gSuSnvRhuImaSolE dUr4BhcDwrgl4hcpSdBPUk1Rbusrz8/XR833mxp+6OzHz/GFVAzLdMo2dskStaf2Ejk1 FQsWU9VsNlq1BxMma6Ool607t1JI0n8rMsYppAm5cj8djxNazFMDNqhihsb5h5E6Lgo6 qiIPl0v2/mg+NeA8Z2y7LkQLVGEAJLAmXtXEbfCQaGu0RT5l6xTbm69qpE10vbgG9pv5 61Ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9mHQn9yr9ukPszYJrf03cNkjP7/MXLX6PUP4ZK8/EQw=; b=ztCRizStx4qqStF+4r/EI3HRoWIWzFPhLn87QhZ1V5hZmBNT2/Q9lCgQeWUOJEIsWq 0A8rJN9DvKBYRiQ9YnydgkqZX8/Vdk90f+fMzMYJbc/ENQ6/du9zn050ET8ZLpcqCBWW boH++xu3xK2iuacocpDYx30n4ZBdW00tqEIZSmC4JvsP4rYsx6YEYhSmgq1UazDVkVrJ zZUaoFN2WPz2KrL54DgnScq5ysRrtJL+iMiiWKSvzFnW6EGcsSlLvVEG82sm5NGe+pn2 cTZZfWCypydGnVeu8T4AW726nA5hIs8yYTbiMYgn9myAhqwgEHEMeTzBYV1ymdzkJdjM 4M1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rs27si157422ejb.379.2019.09.16.15.45.46; Mon, 16 Sep 2019 15:46:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391722AbfIPUr5 (ORCPT + 99 others); Mon, 16 Sep 2019 16:47:57 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39084 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732405AbfIPUr4 (ORCPT ); Mon, 16 Sep 2019 16:47:56 -0400 Received: by mail-wr1-f67.google.com with SMTP id r3so837246wrj.6; Mon, 16 Sep 2019 13:47:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9mHQn9yr9ukPszYJrf03cNkjP7/MXLX6PUP4ZK8/EQw=; b=AsNs4BJ22RLrJfUZLd5+zl7vDYpqTPyLlH7LNo55QbbAsSiba41+32EkMl1y4WHyNL 6jlotrJlCm5cfCqhqbz/idlPtwRQ6GS09BpA5e6om8X7KYyzNfx4mzUzOHkKvw1F6Osu VVH1coUrLZ9fLkAXDqKqq5WR2z9wxyFAbj5jXBc7l0EZdWUeMebBxxqGlsmhYf2ykmtI rTFdyJj4OJzD/bA7nZTScnpe43EcCO/LvOU9d5ryPX1GPj0Rsdx8l+WBntVXt1tN6r/H nr82aT5ja7eW9CO1Mk01B14gqZ57MnojzU3SLJF4DrtwBavqz6nM+oBd9XUMjlZqzvLz 6hag== X-Gm-Message-State: APjAAAV8wXlW/AvnFTZ43mBJhF9ure9i8yogRmcd5gNDf8/eYjN2C8Xs yhKZNK1JYlDBVrWPKtxOQ7A= X-Received: by 2002:adf:e7c2:: with SMTP id e2mr166037wrn.319.1568666874026; Mon, 16 Sep 2019 13:47:54 -0700 (PDT) Received: from black.home (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id x6sm231437wmf.38.2019.09.16.13.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 13:47:53 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Andrew Murray , Greg Kroah-Hartman Subject: [PATCH v3 26/26] devres: use PCI_STD_NUM_BARS Date: Mon, 16 Sep 2019 23:41:58 +0300 Message-Id: <20190916204158.6889-27-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190916204158.6889-1-efremov@linux.com> References: <20190916204158.6889-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use define PCI_STD_NUM_BARS instead of PCI_ROM_RESOURCE for the number of PCI BARs. Cc: Greg Kroah-Hartman Signed-off-by: Denis Efremov --- lib/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devres.c b/lib/devres.c index 6a0e9bd6524a..ab75d73122b8 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -262,7 +262,7 @@ EXPORT_SYMBOL(devm_ioport_unmap); /* * PCI iomap devres */ -#define PCIM_IOMAP_MAX PCI_ROM_RESOURCE +#define PCIM_IOMAP_MAX PCI_STD_NUM_BARS struct pcim_iomap_devres { void __iomem *table[PCIM_IOMAP_MAX]; -- 2.21.0