Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp988680ybl; Tue, 13 Aug 2019 05:51:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5AYLqkDW7bV6Agb1gmPRUo+q9fw16jn/jv5MxgKfVdG0zIEcfjy/fcG7tLTHCGnhX32cm X-Received: by 2002:a17:90a:cb01:: with SMTP id z1mr2053488pjt.93.1565700682660; Tue, 13 Aug 2019 05:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565700682; cv=none; d=google.com; s=arc-20160816; b=O+koFwZhnMgenQlQdbmvbDVxT8Xvo78/u6vg9I6sdkeWQAnnDRrgUca2vPD2GrlVZG xWprbRiX7zCIt/1uSTX8HD0GSnoJzp/v3mo7MCZ890TinNoNYg+g2WQNxAlodFcjyId/ eZgnJyoLPmj4T7BlzZK0Vy3ofZmbZQdiLB2tGnUQWBepH/xSGLM5zi3Twh/nKC59+FYr Y/rAn32bPzJKPJHvhrMxiPp/b/rltDzG56US3jNE7NuoOv+Hwfu+eVPpIAHuGUv2OFW7 3URmzC0mUjn04quDLcHtvIygybTqr7G6b9/BstKbX3m4xK66Iqlr9l1SoNx8HmeZStQ7 ltLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=xJW2N+InaQSTPomm1XVnEng30foi6NAeLOPusdmdIo0=; b=qQGkQYoCsooEx7KQyiT8efQe501voO8CrDGGIu+9z2uqooJu1Ans9KDbD6Y9nDkRwR q/m7kx8f+xz4maem7W7gYJ8AJVQACo7A0wEym1UGtE1WZI6cwbyM6T0dUpaXckqa2KUk wJq7TcZn7+7EjeiweL7L/GMWSXJe1uTXymvDhJ+9Hh0z5AzGIzYwtlrpQ9m7cmbgggH+ BuhKn3Bgb7CjzqbwOG0O8O8GMv1v19VcLitRGbD47UxxQFxHLtpg9cS/VajudtiIQWzo z5ufSeFJha4uJP+vEpLXh4+fjseJjSmYcwvVx0gK+RxV3SbSzMTwDrGkcxaiba9VQk93 GiSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GxsdQ6/x"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si64341799pfb.242.2019.08.13.05.51.06; Tue, 13 Aug 2019 05:51:22 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GxsdQ6/x"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728750AbfHMMsi (ORCPT + 99 others); Tue, 13 Aug 2019 08:48:38 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56153 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbfHMMsh (ORCPT ); Tue, 13 Aug 2019 08:48:37 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190813124836euoutp019ede24863fb8e3be4734c0e7ebb30820~6fFL20-ov1904919049euoutp01i for ; Tue, 13 Aug 2019 12:48:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190813124836euoutp019ede24863fb8e3be4734c0e7ebb30820~6fFL20-ov1904919049euoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1565700516; bh=xJW2N+InaQSTPomm1XVnEng30foi6NAeLOPusdmdIo0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=GxsdQ6/xYDYAKv4Lkn6CqM/mR7wacUeWb343ooTs+ofvvUZOMiQww7Py5eFAEILRV GPzBjiIHaEzZ2jgFhIbpYfs8gyez4aXFNms19gX/SYqdEEJUxh7uXMXwZD7mlxLiNw Zqqg3uzjBEt964nv5smzdmhUqZPBxVM8eTmzSZgY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190813124835eucas1p13cf168bcd18f3c75ed1a5bf426829594~6fFLUKorf3217532175eucas1p1y; Tue, 13 Aug 2019 12:48:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8F.CA.04469.3A1B25D5; Tue, 13 Aug 2019 13:48:35 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190813124834eucas1p16c12b52102e18fd6dcfb02f44a2acd6f~6fFKif5F73225832258eucas1p1-; Tue, 13 Aug 2019 12:48:34 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190813124834eusmtrp11d974e10d5e764a6e94e70b69bebd531~6fFKSqW4F0418804188eusmtrp1V; Tue, 13 Aug 2019 12:48:34 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-3f-5d52b1a3149e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9D.32.04166.2A1B25D5; Tue, 13 Aug 2019 13:48:34 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190813124834eusmtip26b03372d95c5e25986128063367696a2~6fFJ8r4NG0656706567eusmtip2O; Tue, 13 Aug 2019 12:48:34 +0000 (GMT) Subject: Re: [PATCH 6/7] efifb: Use PCI_STD_NUM_BARS in loops instead of PCI_STD_RESOURCE_END To: Denis Efremov , Bjorn Helgaas Cc: Peter Jones , linux-fbdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <6c4e491c-8afd-92b0-45b5-d915de399ccc@samsung.com> Date: Tue, 13 Aug 2019 14:48:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190811150802.2418-7-efremov@linux.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPKsWRmVeSWpSXmKPExsWy7djP87qLNwbFGvQvEbNY0pRhceXUbkaL E30fWC0u75rDZnF23nE2i66FN9gd2DwWbCr1eHJlOpPH+31X2Tw+b5ILYInisklJzcksSy3S t0vgylj29TNzwTn2ilUfJ7M2MM5m62Lk5JAQMJFo+nGBvYuRi0NIYAWjxMM9/SwQzhdGiYYz p6AynxklFi5Zw9TFyAHWcuqlJUR8OaPE2q3vmSGct0BFmzezg8wVFoiXuPvpOCuILSLgJfF2 /y2wfcwC1RJLj24Eq2ETsJKY2L6KEcTmFbCT+HXrAZjNIqAqsWBGB1i9qECExP1jG1ghagQl Ts58wgJicwqYSTT/PcYEMVNc4taT+VC2vMT2t3PADpIQWMQu8WfhbahHXSTm9G9mgbCFJV4d 38IOYctInJ7cwwLRsI5R4m/HC6ju7YwSyyf/g+q2ljh8/CIryP/MApoS63fpQ4QdJTq/3mWB BAufxI23ghBH8ElM2jadGSLMK9HRJgRRrSaxYdkGNpi1XTtXMk9gVJqF5LVZSN6ZheSd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fXr4vVPJ62iDpeqLw4L13DoVn 596x1+/3/9u674NwhstyodSG1pfKZ8N7Ne16jr2K05iqq1Nuksitc/Xk+nnHYzOWN7Tsf+QS W5Bw+dX7qoNqpz5/eCH09Z2f9gzZvV/qI/bwRb7ti2796MC4w++cEktxRqKhFnNRcSIAf2dF T8ICAAA= X-CMS-MailID: 20190813124834eucas1p16c12b52102e18fd6dcfb02f44a2acd6f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190811151322epcas3p283d7a3293a12dfac23d13d8a16349d1f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190811151322epcas3p283d7a3293a12dfac23d13d8a16349d1f References: <20190811150802.2418-1-efremov@linux.com> <20190811150802.2418-7-efremov@linux.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/19 5:08 PM, Denis Efremov wrote: > This patch refactors the loop condition scheme from > 'i <= PCI_STD_RESOURCE_END' to 'i < PCI_STD_NUM_BARS'. > > Signed-off-by: Denis Efremov Acked-by: Bartlomiej Zolnierkiewicz > --- > drivers/video/fbdev/efifb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c > index 04a22663b4fb..6c72b825e92a 100644 > --- a/drivers/video/fbdev/efifb.c > +++ b/drivers/video/fbdev/efifb.c > @@ -668,7 +668,7 @@ static void efifb_fixup_resources(struct pci_dev *dev) > if (!base) > return; > > - for (i = 0; i <= PCI_STD_RESOURCE_END; i++) { > + for (i = 0; i < PCI_STD_NUM_BARS; i++) { > struct resource *res = &dev->resource[i]; > > if (!(res->flags & IORESOURCE_MEM)) Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics