From patchwork Wed Jun 21 21:52:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106126 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2149400qgd; Wed, 21 Jun 2017 14:54:12 -0700 (PDT) X-Received: by 10.98.72.198 with SMTP id q67mr37552698pfi.23.1498082052316; Wed, 21 Jun 2017 14:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082052; cv=none; d=google.com; s=arc-20160816; b=oCRHNFBIDPS5fyI9gH3Piamdd04/Sj+dxLYFbvq0pq8UExxMHdLJDJsRPNZlbt8CQa 7l/Z3X0yPGzmRLYpzIbRbKhr30lvKlLLXdySOZK08sLkoWossPrBQq9zLWYBULK4g82N EIbwh/xTJsqOqbpXgwtJ/ZHo3tWelwzeRP0sujwLpNc/gOiWkfzlWC/SLsSXE1wYzdwP H04v3xagP7KFfNV/9IkO8OUQh3T0hUpiDR17e1qMwCos2MXyex4hK/qcFRt/7brTfYX0 pJsSn01ciIUIQMrfPIKOTSYZm7f//8kf8ohMWCVGo6Hf+IHrimiOw/YEFRoasFnNtl6K rMrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pV9gGMl4QF+gs8c24EJwhCJPxxd0UK1vXwMHLXLxIro=; b=TXf85YmURUVxhmPk7XwsmeEAlf8ti6tXuo/L6IhcXh/jIWFFVq+p8kCwBXiNCycyH5 K12KjoykDGnS1yhgjMiOJwbuTraqxezXW40oVyFbmZ19nUDVkKl0V6x3B57PTepskXUU csVwJIPUzNFG+eb9OjxlvZ3gkHp2R6+2liMtDwmIoMT9omADxt0XaQYr3TXwm80OkDCt APYXC6hZD2Iyx1Wr8CAxx6iAf/+7Pivnl80P7Gn67J+jsOZx4gzSy/aLxW+l8kIz7iGn N0XcEDy51Lg8iD7q8c6DmST6HEWpf6OEiswn884vA4HPavk3w7L6m6mONmBmC8MgAQeg wAuQ== 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 l22si9982501pgo.408.2017.06.21.14.54.12; Wed, 21 Jun 2017 14:54:12 -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 S1752108AbdFUVyA (ORCPT + 25 others); Wed, 21 Jun 2017 17:54:00 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:53456 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbdFUVx6 (ORCPT ); Wed, 21 Jun 2017 17:53:58 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0M6mdY-1dkiA43yrc-00wRbr; Wed, 21 Jun 2017 23:53:25 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] ARM/PCI: iop13xx: address uninitialized variable warning Date: Wed, 21 Jun 2017 23:52:59 +0200 Message-Id: <20170621215323.3921382-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:XDXUefD88JbViQAdC3Yx2C8Roo5q3Zsojltei+Igvo5hnog2FWR F/H9O7ne2MJ9px2p18u3fIL3rYjT9nYwpHdX1IXdCYNPd60NAZ0ck4JZq/T1VaX/ZAruEjN wQqed1mCnnfvEqeLNZ5TL4yCqJkEPO64qr0fctkJujYsAENS691q1mk+Rc7HcMpjNlw0rc1 x5zkLEgEs0W+BTR8kDXYg== X-UI-Out-Filterresults: notjunk:1; V01:K0:nkDMPzOQ6ig=:u9P67+yH7H89rJTqEdZMlK EgPHCE9D7K8H3qCNH7Se6JtEzZTKsXKBBQv+D9YXIIVb4qOHeAthqhfjWQuym7JWSzwrDfQA0 kGlBckBgHv4lsnhSZD/3GrP9o24yaIhrSXfKablMp7pz/R8tCCliXvudOW2JWXrQODdpq2MHg +VDntXEXxPd4DfH9CDrrLxpkC1Xb+A0jc1y/+0s8wSWeVRHPPw3hpvrc5/3J1pBNi8GQzYhgK nzW5xTFQvWLv8VMdb6xporV46fPihi1PabrofivIWN83aMg77glahNXei5TJYO6IkmKUtmwUJ oZhcemZJ9xp8P+HUBU0nDV7V2OJZk6R6TXVmMLBXEbrgBYP16L6o50RnBLMw+1PohhR4pTLT6 3cydwBO6bYoYvHErWqQdkKa0GRS1K9e9yA/cHbi3IeoKYAnY7O5JCJgYMjpz6p6+SYYij6kbD 3RhYvfUVKNrFUpGu1fKvY7+4y9qgTUxniMomvqOrn4RlTV9OduXlSKK94Y/9PrTlAi3/TF+k3 yDklrL1o9QmpzS8uqqBsvefQWTr6XknH5nsnvE3ThjwZHfW36TV+SJGFtyeTSkUNr9sQTnaJa G47P1UlNrVgM9zbcB/EDg+uLR3JKz1rBKxFCDEl9x3NWg+S4YMijYv1qxlo7OVJoRbdMvcOqE OpROPE0PMjyErIXoRLSp82AzrCw7OIEW7hVg/cHpxI2sPhuit9CEoakMW+pdF0GHJrgM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last rework returned a variable that the compiler cannot prove to be initialized: arch/arm/mach-iop13xx/pci.c: In function 'iop13xx_scan_bus': arch/arm/mach-iop13xx/pci.c:509:17: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] In the switch statement that sets the return value, this adds a default returning an error. Fixes: ace27646da8e ("ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Arnd Bergmann --- arch/arm/mach-iop13xx/pci.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c index b97879bfb81a..3c51a9bb9b49 100644 --- a/arch/arm/mach-iop13xx/pci.c +++ b/arch/arm/mach-iop13xx/pci.c @@ -553,6 +553,8 @@ int iop13xx_scan_bus(int nr, struct pci_host_bridge *bridge) if (!ret) pci_bus_atue = bridge->bus; break; + default: + ret = -EINVAL; } return ret; From patchwork Wed Jun 21 21:53:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106127 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2149540qgd; Wed, 21 Jun 2017 14:54:41 -0700 (PDT) X-Received: by 10.84.194.129 with SMTP id h1mr43715470pld.260.1498082081527; Wed, 21 Jun 2017 14:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082081; cv=none; d=google.com; s=arc-20160816; b=emq5RokcsJwhXjDfbPpSZCxGucv7Sat+LRIMKffwzFoOBXbrKi+HXHSJv77MFs0qHU Xlbydu+TBBI9ofZ3ncTtUoIFR3GoFdQtvrmYDy9jYMRq0OwTpcZqxPeFdac/SoCfk/Lz kIPE29fg5vJ66G2CwTA25fyJS37wpkX/LM6A7qGG0L2ST95YdrJRGb9IcYbuUm0RP1+A jfcp7fEcbFT0kCKmY+b3t4EfRDsJSH0bGa9mmHJHQjwd50teXnEtrLWzIRMNVvV8XC0C tr7Vqr1ec8hnDSe4+SxRYkecM47Dn1AQzbvRx7ZvENx/qAIftXO4JcX1nVp7RljGItBk Xk4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wBH6oUH31QqgDpzPdvcorpJhYwQvQo9PV71Y3Mfj9jQ=; b=xpSqh9JXT5QfL98tY9EH4Ls7CEp9R+nxLuKAl13MYMBOsJCAQEIUT8rLmK4gj8ivjT U06zRyuRUYrvYW6XpMzXjCbVWWimp3i9wtg5VI/MrsHHbivrTh79Iz+frRY/7IOGCh3w 3Pr7HzXPwm1OUyF/jjhpqS7z5Pss2SIYMGNIb+WX7iDQJ5ZNCyGzz6/10hAiNNeibNsG fqQaTj2l0EdW7jCsTa+o82PwmEU0rqi93ZM6esmw0HNdvYDzpDws8g/pfGfH1MgzIwTA ST67d7hJRf8BrG3lN1TBH8Lae5rbsZbW0XWeOP7QkFhknfjcvjJis5phrxVR6bUuIHsV MiSg== 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 1si15729520plo.403.2017.06.21.14.54.41; Wed, 21 Jun 2017 14:54:41 -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 S1752218AbdFUVyY (ORCPT + 25 others); Wed, 21 Jun 2017 17:54:24 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:59928 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755AbdFUVyW (ORCPT ); Wed, 21 Jun 2017 17:54:22 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0M9Gk2-1dUuIg0Qz0-00Cliv; Wed, 21 Jun 2017 23:53:44 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM/PCI: mv78xx0: pass pci_ops correctly again Date: Wed, 21 Jun 2017 23:53:00 +0200 Message-Id: <20170621215323.3921382-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170621215323.3921382-1-arnd@arndb.de> References: <20170621215323.3921382-1-arnd@arndb.de> X-Provags-ID: V03:K0:d6ZRcrpF1gdfAQmuZyeec8yMokaRPFRlnlFzszbtDuSBmrcHAAY qYKyslHnYzWnh1UUNB71idRo6Pi5Q14DjJfB8aBzlSxERg+10E9f2Z0uil6qNve+guNe7EK y4g0Uy7yNUM++bxACDuvWKlUyAVqSfpCUyrjMxm1Ws6VsIQuIP4Q8hoZ8qYMAdWhFBcZcjK HDXN+QLMJPFH9FWhVuMJw== X-UI-Out-Filterresults: notjunk:1; V01:K0:dLOiz2Rk0ig=:v+fItNBgBVeCovth/5oOsP 82pIelOretiUktz2c++ifRUp/08ny55an/yeLvgtPxfHx0gkwEZonta7uUAOcxwIsaaCX4/G9 Hol4uq9fakApK2X70mBAYcey8lXNanSqjMUgxRSqJIr/nJOkG9ohtOVQsyLH2BL0WzH3Kgxpf 7yLlK1zMGgOAYOfLitW3xhxA6GP/p3pSy/t7i9SqXIH/MsomjpTbPdVHhk6D0qrS+HFdxA/QN JHcx6OKo4TV1TpGch5eO2XWsWdIZYKQ6cjzXwqimq07Uq6RWFPkUUovehpsGYuTQPMhoHUCEe wFRId8fKjOZQc7uGQ95jUCsnDEt4cduTZoKPDW1lr4vm9IaZ8k/SwIM81sCYtH4ALl44tMLKj PUIpXxTXSYvex1ezc+D42rt7xZXt5YZlCg/QaRmtIlTLHSrEg1W4pfQQJV7PV85ymago6oXAB marH5ZHhtGuGp++Wg0fWqa/q/V3r2hS67QgbToJSIn0Ea+s5yOmlEJiZ+3WxxPsoAJ+uqP3hT duqHxzJV2mDB/9xnZGl7UvHUujA9aHclqslMVV3G7rQ7/53cVqbb1hSVCItHUgL3fvcz+lVmX w12W9JjcscAQrsF1x0vIH3lb4hGfS1AQ7ZXWDbyyZ6Dtp4TyjGUO/XP7ZsRAIQAW1XjVtYqPA Ma1IHZKUxY+4SWxWngAHeWGfBcLTy24kkK/cIflluU+wTNL0aGVCxRdLfdm6CxBxQqHg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We used to pass the operations when calling pci_scan_root_bus, but that argument was removed: arch/arm/mach-mv78xx0/pcie.c:175:23: error: 'pcie_ops' defined but not used [-Werror=unused-variable] Setting it in pci_hw should address this. Fixes: ace27646da8e ("ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Arnd Bergmann --- arch/arm/mach-mv78xx0/pcie.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index 2b406e909a43..cb7f95c9d8eb 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c @@ -214,6 +214,7 @@ static int __init mv78xx0_pcie_map_irq(const struct pci_dev *dev, u8 slot, } static struct hw_pci mv78xx0_pci __initdata = { + .ops = &pcie_ops, .nr_controllers = 8, .preinit = mv78xx0_pcie_preinit, .setup = mv78xx0_pcie_setup, From patchwork Wed Jun 21 21:53:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106129 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2149692qgd; Wed, 21 Jun 2017 14:55:10 -0700 (PDT) X-Received: by 10.98.159.19 with SMTP id g19mr20882667pfe.21.1498082110542; Wed, 21 Jun 2017 14:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082110; cv=none; d=google.com; s=arc-20160816; b=KLmgVNvyv6N60D13xJ2brfRxDg+Oy1vnozyR+HsqcBH0UHBySexOpcWIb8xKYhomxU X9JBic8tpxTi3euLsN5V4PChMs1Pewv3XlwtFBtw6q86Cww/r7NpdWQU01aDx22zEjZF o3/MIDyFmd7ktuhook6seOfduyMzgSvkR3C4RDqLNSVFG2Yrj2fpA43JkzK6EZOQuygA rMKlR7PksG/l7qvEgKDFRnNbOpBZdiIiXGxQH+7XUz/pMuqeiqjxTP+CPLRhS8i6S7TA u5AUZQn9gi+B0QS+PcETGJxKJnRQeT7MYbk1D52U1vWMbQ395aZi9adgXGa99W85glkE xIXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=4foRyjq8Ca24H3Hhpo/rDGClXLEh6XcMtPR+4purdFo=; b=z03QEBFYY2gbUVSMruimJf//SU1QWw0vELAP+hZ6dCiaUbE5+PG04RoQyhBDgDgAbQ M5BovcNkmxQ6CbnwUBA3hXJdhLKPAILC3b8TDQL4jbiYsopbN8s/Z1ytpEPXRv5Tbs2L cbVxWhFoIYVayK+0lyiGmtxRn6C1a9V/EwrEG6zfI6Pf8FFdzqlE6tdWFnIEkll9UpHk GHtPaMtXdpUCMGq5IlpKm6kmWv0vZf36rL7rR+8dC6xuXMkskW++UU2QAqVY0S/BpBH3 VHuzarJTau/HeMzUdEWm+rI60PLXSSKz8PqwHEke1zRnqzgFR15BoZ15/dRk6w8dc17R 8CfQ== 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 m3si15881358pld.61.2017.06.21.14.55.10; Wed, 21 Jun 2017 14:55: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 S1752455AbdFUVzI (ORCPT + 25 others); Wed, 21 Jun 2017 17:55:08 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:54742 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbdFUVzG (ORCPT ); Wed, 21 Jun 2017 17:55:06 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJl7U-1dOu2D2644-001CC7; Wed, 21 Jun 2017 23:54:05 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , Rob Herring , Brian Norris , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] PCI: versatile: fix typo Date: Wed, 21 Jun 2017 23:53:01 +0200 Message-Id: <20170621215323.3921382-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170621215323.3921382-1-arnd@arndb.de> References: <20170621215323.3921382-1-arnd@arndb.de> X-Provags-ID: V03:K0:TRdLhOjFd3aSsQuBzn9JKAhouEs0xGMtTB+BLdMYQOLZ49GpIBj 6W8eRqTm945gBpwvLGMvUoR6jk4CfONV0ui+yWNrKgOIWfoZHm1j3Rs02/MOTJRFKv/xz+6 jVsrv6D1gm/ZEyprrZ3zTiqAvCCaN6K7KsLRqIZQioZKvhritWbHQpscsWICa5Wqf7Ka08z iJv6Q+c9oMEZ35DK0lfXw== X-UI-Out-Filterresults: notjunk:1; V01:K0:GmurvbqZYMM=:LZ+k/OMZMGsoAmFN6fezAv ojvRy29OdZzMAldj55gRECcsCKcGoENJmKIimWcR0acpRFD7S57CiT2Ikxa6fXiXQGdubmrPS K1+8ySuzDt+en9duH5OuoCsNjH+5vZDPTNDdeKz5sjgtCkxxeMmcZq26c/JTZLzMBEAY2y6SX AaZ5IdaScjAumu0QctKh1VfzeKJUckPHu8x6rfXey4CXqDRmr0QYCbMiYcy7Gt7E9xO4O6dgU Jtw1uY/zAUAi7NDYSf/w+xdLtGauapwHvXwnYTCnxxim3F66zEkaeFjWKdN/MmjTsVU+bEccP ghCx7jChluuQypQAlVdsBmwTwuHzQKgY3PEU/SJ8CxSGRvevATB/6z179ccIjGJfFvqfIf6BC h2axwWR7/5CuXzYwqjqPMt5oPli5Ori8ymA/7XLH+8i9I0VMrpfCnRWrOSSVtchCyfWcH9bGg mz3lo03HqzJQ6qkxvTVL5bF90gFic35OeFo/WpaEmWUQqsxBXb2jTU33jBwSNrMlfzmRKYyR5 YzAsdz0p2C16Xf321NCxMqdSysxaAJKOBD6tUUMsU/cbDPACYdJ/C16gA4vwgufSQUhnsR/PJ Z+VdwzhFDKmzywsn/VjMhVBtQu/mVfFH9QQdebWOIyReQaLrn8zQSA1zBsneF57RniGwyEFXC Q9cSCvBTjWD96oO980Iikf3qhGx6Ywd0dxAIg7mTwzMw08ioifVV6sWYPWXEZxLLv85c= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no 'dev' variable in this function: drivers/pci/host/pci-versatile.c: In function 'versatile_pci_probe': drivers/pci/host/pci-versatile.c:131:38: error: 'dev' undeclared (first use in this function); did you mean 'pdev'? This passes the device embedded in the platform_device instead. Fixes: 433d2671da1b ("PCI: versatile: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Arnd Bergmann --- drivers/pci/host/pci-versatile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c index 3be25a9dd29a..f572c921cdd4 100644 --- a/drivers/pci/host/pci-versatile.c +++ b/drivers/pci/host/pci-versatile.c @@ -128,7 +128,7 @@ static int versatile_pci_probe(struct platform_device *pdev) struct pci_host_bridge *bridge; LIST_HEAD(pci_res); - bridge = devm_pci_alloc_host_bridge(dev, 0); + bridge = devm_pci_alloc_host_bridge(&pdev->dev, 0); if (!bridge) return -ENOMEM; From patchwork Wed Jun 21 21:53:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106128 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2149687qgd; Wed, 21 Jun 2017 14:55:09 -0700 (PDT) X-Received: by 10.99.101.135 with SMTP id z129mr38868218pgb.66.1498082109566; Wed, 21 Jun 2017 14:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082109; cv=none; d=google.com; s=arc-20160816; b=g6onSYZtJbeVUEpY/yc8vr67vFXk1Vnus/W2A0tMCWSUmzg83B1GTfQqz96/8A9kpu Qmru+idRIb0ihwd/K3Z3V6ShGkwlwprQorwmfmX0Esom3iv3X8Azkv150rOLRduCSjgN /trC1XwYKuAuted2xkKtTxUFdG01ZbUwTDfEFfBIawdVmlKnG6tFpLqz3v4mVR1eyYe0 cZUk6VwHmD8acfnpQQXZ5iPqu/Liisa/jt8meEFDDIxd1VEAP/AqQ22B5ddstGrUbVVK h1dLwiq6VZsbgCL2z5epce7A3gYKU3elplwnFO8kTl7H8UcfSsycf7qE7FPySOB46Zfu 6riA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=/rNPPMunhwml70wWMRGNe+jKXSQBeN3hm9i8TlzX1B8=; b=Uo0To/Pz85i9vd7HZYgV65RNXqpj2DEu2Gsbz8XjXeocqeqnXAqJovM0LuIvXYrDbm JHeKJMPN5X3DksuKx8fdtIVCW9zGtYv5QKtggK3z0yBvSfi/lCk1kGFyj03GTejERqwe 1q38CzYAC8atF714hWqSpTGpSJPNamiseJVjjEjQGA8Crxg3FZd91kavPv3h+zD8V/1N M5/eHPhILn09IFGh+SK9ZUM3E7kh7l06ZcOcweQULnm+msC2t18AE3e3/HN+gX/obcH7 yq+vCXJA0y7ZACwDc90yyCxzxHdHhUbPpVmN5Z9JtJL168RSOBlohHIwdarECpSq9HyV FOqQ== 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 m3si15881358pld.61.2017.06.21.14.55.09; Wed, 21 Jun 2017 14:55:09 -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 S1752403AbdFUVys (ORCPT + 25 others); Wed, 21 Jun 2017 17:54:48 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56647 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbdFUVyX (ORCPT ); Wed, 21 Jun 2017 17:54:23 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJCME-1dL2QG3hpS-002q5Z; Wed, 21 Jun 2017 23:54:15 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , Rob Herring , Brian Norris , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] PCI: versatile: fix another typo Date: Wed, 21 Jun 2017 23:53:02 +0200 Message-Id: <20170621215323.3921382-4-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170621215323.3921382-1-arnd@arndb.de> References: <20170621215323.3921382-1-arnd@arndb.de> X-Provags-ID: V03:K0:jtlFrLzsGKQSMnu2IJHHZzQOuTT1P/KiQB3dUvPErCmwf0/day+ +4gjus+S8V5mQpE7h5jpplqeADstTXNIvq2Nm3Olagwig0u0VA/IiWecKyfHcMECzJpLxsa 6VYe4U4LEi7KvEm5r/glP7dKzJsVhFikoSDnzrzvOyyWtbMD0l5flseSnkuqIQ2qsAUeeiy NIiEgyS2fCKA6/VhTypfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:iVsiQIcfMLs=:ntUHwZ12m210PjgXoRa5An vN/Ql/SzrWuWryOLggjbPTUOzawK5I4cxsRyJgTMtA9hO9e3l5i0oXGVpqxig0kj5MEz+UlRt 6hFJulq9bRzC4I6IoLBHdfVX+5HNJ7r+/FKjFEypUpMu+qnWn1mordex54xb7e9eBJ2KbUY/e k8nidA9Gj4qsQ/neh/C6EPOUqKZCVtXTYOndzzNnR97OKbVFz5yX3ip9H509G/9nCjfQ0usy2 LrUIoPUd680lAgwCR3M9Fu0gBZYyLGq2NufWPIqgmiLGraL9IYqVVVQRJeIszMw5S2tIWK3XV fyz4YTm1mmEo0ImUJ4sdIhClh+FYa1Z0yMMeUAv9aYm/+ADBrVLiBokxa3NfWZnYtkbRcCb5z oRG+YA08VcRmDIea0Tu6Ak/rr0cCDM6ANzRv84ejGLEplfGg8YOlVegG+rF0kaDKnt375dK/G lWCRiRRGA/0+r8FoOYACjP6vs2TbKfYmoQ6D46IsCZYnC72k8iBg+JmxZrK3mpCXw8ZhCDri3 Tiuox9YiBxgJ/XI90NE2AegCLar6OSz6ysys0n49Qvs8CU7IAX8y171qhNQI68VW2m/vLvcOl VnN7l7kGKrgi3fh8mN+0g0f91iZ8HscJ4Lb18jL2YdN/LyCFvM4LLugr8CJ/Az1IsGGKJgqgl 8tyssLITGrk6fIybMYICMzGBOO3nw3zaZ8Z4A2tPHoVDzzitzl1m+JxFEFJOcADaZvkY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct members were added to the wrong variable: drivers/pci/host/pci-versatile.c: In function 'versatile_pci_probe': drivers/pci/host/pci-versatile.c:212:2: error: 'host' undeclared (first use in this function) Fixes: 997995e1722a ("PCI: versatile: Drop pci_fixup_irqs()") Signed-off-by: Arnd Bergmann --- drivers/pci/host/pci-versatile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c index f572c921cdd4..f6fcec6b5578 100644 --- a/drivers/pci/host/pci-versatile.c +++ b/drivers/pci/host/pci-versatile.c @@ -209,8 +209,8 @@ static int versatile_pci_probe(struct platform_device *pdev) bridge->sysdata = NULL; bridge->busnr = 0; bridge->ops = &pci_versatile_ops; - host->map_irq = of_irq_parse_and_map_pci; - host->swizzle_irq = pci_common_swizzle; + bridge->map_irq = of_irq_parse_and_map_pci; + bridge->swizzle_irq = pci_common_swizzle; ret = pci_scan_root_bus_bridge(bridge); if (ret < 0)