Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752902AbbGVUjR (ORCPT ); Wed, 22 Jul 2015 16:39:17 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59260 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbbGVUjP (ORCPT ); Wed, 22 Jul 2015 16:39:15 -0400 Date: Wed, 22 Jul 2015 13:38:38 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: marc.zyngier@arm.com, schwidefsky@de.ibm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, jiang.liu@linux.intel.com, gerald.schaefer@de.ibm.com, sebott@linux.vnet.ibm.com, bp@alien8.de, mingo@kernel.org, heiko.carstens@de.ibm.com, hpa@zytor.com, tony.luck@intel.com, stuart.yoder@freescale.com, bhelgaas@google.com, grant.likely@linaro.org, wangyijing@huawei.com Reply-To: grant.likely@linaro.org, stuart.yoder@freescale.com, bhelgaas@google.com, wangyijing@huawei.com, hpa@zytor.com, tony.luck@intel.com, mingo@kernel.org, heiko.carstens@de.ibm.com, jiang.liu@linux.intel.com, gerald.schaefer@de.ibm.com, linux-kernel@vger.kernel.org, bp@alien8.de, sebott@linux.vnet.ibm.com, marc.zyngier@arm.com, tglx@linutronix.de, schwidefsky@de.ibm.com In-Reply-To: <1436428847-8886-5-git-send-email-jiang.liu@linux.intel.com> References: <1436428847-8886-5-git-send-email-jiang.liu@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] s390/pci: Use for_pci_msi_entry() to access MSI device list Git-Commit-ID: df516f4278c154f5bb5e594fd54c2b0cb0af7a7c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2618 Lines: 68 Commit-ID: df516f4278c154f5bb5e594fd54c2b0cb0af7a7c Gitweb: http://git.kernel.org/tip/df516f4278c154f5bb5e594fd54c2b0cb0af7a7c Author: Jiang Liu AuthorDate: Thu, 9 Jul 2015 16:00:39 +0800 Committer: Thomas Gleixner CommitDate: Wed, 22 Jul 2015 18:37:42 +0200 s390/pci: Use for_pci_msi_entry() to access MSI device list Use accessor for_each_pci_msi_entry() to access MSI device list, so we could easily move msi_list from struct pci_dev into struct device later. Signed-off-by: Jiang Liu Acked-by: Sebastian Ott Cc: Tony Luck Cc: linux-arm-kernel@lists.infradead.org Cc: Bjorn Helgaas Cc: Grant Likely Cc: Marc Zyngier Cc: Stuart Yoder Cc: Yijing Wang Cc: Borislav Petkov Cc: Gerald Schaefer Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux390@de.ibm.com Link: http://lkml.kernel.org/r/1436428847-8886-5-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- arch/s390/pci/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 598f023..34f1627 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -414,7 +414,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) /* Request MSI interrupts */ hwirq = 0; - list_for_each_entry(msi, &pdev->msi_list, list) { + for_each_pci_msi_entry(msi, pdev) { rc = -EIO; irq = irq_alloc_desc(0); /* Alloc irq on node 0 */ if (irq < 0) @@ -440,7 +440,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) return (msi_vecs == nvec) ? 0 : msi_vecs; out_msi: - list_for_each_entry(msi, &pdev->msi_list, list) { + for_each_pci_msi_entry(msi, pdev) { if (hwirq-- == 0) break; irq_set_msi_desc(msi->irq, NULL); @@ -470,7 +470,7 @@ void arch_teardown_msi_irqs(struct pci_dev *pdev) return; /* Release MSI interrupts */ - list_for_each_entry(msi, &pdev->msi_list, list) { + for_each_pci_msi_entry(msi, pdev) { if (msi->msi_attrib.is_msix) __pci_msix_desc_mask_irq(msi, 1); else -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/