From patchwork Wed Feb 25 15:15:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 5880811 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D58E9F373 for ; Wed, 25 Feb 2015 15:15:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDC632034E for ; Wed, 25 Feb 2015 15:15:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5FFF202F0 for ; Wed, 25 Feb 2015 15:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641AbbBYPP2 (ORCPT ); Wed, 25 Feb 2015 10:15:28 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53054 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753205AbbBYPPY (ORCPT ); Wed, 25 Feb 2015 10:15:24 -0500 Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MT3QL-1Xyl7V1HsL-00Rqfx; Wed, 25 Feb 2015 16:15:04 +0100 From: Arnd Bergmann To: Bjorn Helgaas Cc: Joachim Nilsson , linux-pci@vger.kernel.org, Rob Herring , Linus Walleij , "Rafael J. Wysocki" Subject: [PATCH] pci-versatile.c: Update for API change in list_for_each_entry() Date: Wed, 25 Feb 2015 16:15:02 +0100 Message-ID: <5150533.nuGgOOyLIn@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:MMc1/RZxD5fg612pmFRXd4quS3Dic16OtqKs3BPJRDqyDT++nwX dRLf12iQc/9lW/lJls2/nssFNTPx8Y4WAVyi/6CbGv2hmy+sGTBXYWG/Ug7yFNP8DQj2R+I 1KtT7cZ66HumTz5vu3CjQPl9h/hJn24t9uWQFQmYyYGlVyqDI3pc0VnTMgcyM6Aie8E3VHG wLI1yCSLZgeHFqXGxIDEQ== X-UI-Out-Filterresults: notjunk:1; Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Joachim Nilsson In Linux 4.0-rc1 ARM Versatile PCI build fails to build due to what appears to be an API update. This patch is a very simple correction, merely posted as a heads-up to the maintainers. Hopefully a better fix can be forwarded to Linus. [arnd: the patch actually looks correct, so let's take this version] Signed-off-by: Joachim Nilsson Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij --- Joachim reported the bug, and I independently found the same problem. The patch he sent to the list did not apply for me for an unknown reason, but I fixed it up and forward it now to the right list of recipients. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c index 1ec694a52379..464bf492ee2a 100644 --- a/drivers/pci/host/pci-versatile.c +++ b/drivers/pci/host/pci-versatile.c @@ -80,7 +80,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev, if (err) return err; - resource_list_for_each_entry(win, res, list) { + resource_list_for_each_entry(win, res) { struct resource *parent, *res = win->res; switch (resource_type(res)) {