Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbbGVUid (ORCPT ); Wed, 22 Jul 2015 16:38:33 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59221 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbbGVUi3 (ORCPT ); Wed, 22 Jul 2015 16:38:29 -0400 Date: Wed, 22 Jul 2015 13:37:53 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: mingo@kernel.org, wangyijing@huawei.com, ralf@linux-mips.org, grant.likely@linaro.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, bp@alien8.de, tony.luck@intel.com, stuart.yoder@freescale.com, hpa@zytor.com, jiang.liu@linux.intel.com, marc.zyngier@arm.com, tglx@linutronix.de Reply-To: tglx@linutronix.de, marc.zyngier@arm.com, jiang.liu@linux.intel.com, hpa@zytor.com, stuart.yoder@freescale.com, wangyijing@huawei.com, mingo@kernel.org, bp@alien8.de, linux-kernel@vger.kernel.org, tony.luck@intel.com, bhelgaas@google.com, grant.likely@linaro.org, ralf@linux-mips.org In-Reply-To: <1436428847-8886-3-git-send-email-jiang.liu@linux.intel.com> References: <1436428847-8886-3-git-send-email-jiang.liu@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] MIPS/PCI: Use for_pci_msi_entry() to access MSI device list Git-Commit-ID: bbcffac3a8b60f2f01a3fcb322167f6b8aba3416 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: 1914 Lines: 48 Commit-ID: bbcffac3a8b60f2f01a3fcb322167f6b8aba3416 Gitweb: http://git.kernel.org/tip/bbcffac3a8b60f2f01a3fcb322167f6b8aba3416 Author: Jiang Liu AuthorDate: Thu, 9 Jul 2015 16:00:37 +0800 Committer: Thomas Gleixner CommitDate: Wed, 22 Jul 2015 18:37:42 +0200 MIPS/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 Cc: Tony Luck Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mips@linux-mips.org Cc: Bjorn Helgaas Cc: Grant Likely Cc: Marc Zyngier Cc: Stuart Yoder Cc: Yijing Wang Cc: Borislav Petkov Cc: Ralf Baechle Link: http://lkml.kernel.org/r/1436428847-8886-3-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- arch/mips/pci/msi-octeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c index cffaaf4..2a5bb84 100644 --- a/arch/mips/pci/msi-octeon.c +++ b/arch/mips/pci/msi-octeon.c @@ -200,7 +200,7 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) if (type == PCI_CAP_ID_MSI && nvec > 1) return 1; - list_for_each_entry(entry, &dev->msi_list, list) { + for_each_pci_msi_entry(entry, dev) { ret = arch_setup_msi_irq(dev, entry); if (ret < 0) return ret; -- 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/