From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 529B4C433FE for ; Sat, 27 Nov 2021 01:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349599AbhK0Bc7 (ORCPT ); Fri, 26 Nov 2021 20:32:59 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40386 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346622AbhK0Ba7 (ORCPT ); Fri, 26 Nov 2021 20:30:59 -0500 Message-ID: <20211126232735.069709622@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1637976168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=JXvHU/eN0iJfDqMWbOd2UGXYgpl11UY148yTUdaqnAk=; b=eqjntOCOy7t0cW8iGvafVyOIYrBDoYFv8wjVOK3VZTa3IDK5lU+/UR8q+9c+2VDAI9+Ezs o/0g0/vNyqf4tN91Wfat6wI2jGzpVGm2Duah9X2S3A783/hyDsVaRN8I8W4mEwnPvI9P0X yJDnnkxh06wjT6z8zfI/XO4FPp8pSeI/Xrj5U6B5rWNe9r8HoM9GugeNoJ1zhj096Ginc9 K/LOWUnU0jNGRgJfr7Sb9EmPSxv4uh+gj6lBPrtDLGjKJuoHT6mHT+nxR8i/WcmbzgaKJ9 pCbUIBwqMbXvb2hwKNvQr0lPdInv4u9vPdhGCzeeQBGej8gEgSQmPoL8wzKQUA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1637976168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=JXvHU/eN0iJfDqMWbOd2UGXYgpl11UY148yTUdaqnAk=; b=lOyQMMrTC6J0qLofPUcsu1jMyikGXQID31mItVvhX3kOcAkXy97ngBw1o5hFO+tIOW8nmD pWyEsjb3ugKM8pBw== From: Thomas Gleixner To: LKML Cc: Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , Jason Gunthorpe , Megha Dey , Ashok Raj , linux-pci@vger.kernel.org, Greg Kroah-Hartman , linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com Subject: [patch 13/32] xen/pcifront: Rework MSI handling References: <20211126230957.239391799@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Sat, 27 Nov 2021 02:22:47 +0100 (CET) Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Replace the about to vanish iterators. Signed-off-by: Thomas Gleixner --- drivers/pci/xen-pcifront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c @@ -262,7 +262,7 @@ static int pci_frontend_enable_msix(stru } i = 0; - for_each_pci_msi_entry(entry, dev) { + msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) { op.msix_entries[i].entry = entry->msi_index; /* Vector is useless at this point. */ op.msix_entries[i].vector = -1; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3735C433F5 for ; Sat, 27 Nov 2021 02:14:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349696AbhK0CSF (ORCPT ); Fri, 26 Nov 2021 21:18:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350089AbhK0CQE (ORCPT ); Fri, 26 Nov 2021 21:16:04 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E10C08EB3B; Fri, 26 Nov 2021 17:31:06 -0800 (PST) Message-ID: <20211126232735.069709622@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1637976229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=JXvHU/eN0iJfDqMWbOd2UGXYgpl11UY148yTUdaqnAk=; b=lSmmn8UQUMHaA27oGWhQLdRMIwwKOAAOugFuLESWrhOHRA0aO8qY5X/spCYMfdo+DWtgt/ EiODp9I8nmnYJ5JPIrquNFnczbXu4k53zacEouvHyV9kaUOniBabuAhTHAyeZ5WSb7N4VE d+pWHde0JfVhC+CASELRdaucgofCV1jyaSKZXUCTUXLG52sM0HTvz87W7O15eeok3WhGxm pXiS+RCNLsQUGictBvlomudk7UNUosYq86OyVha2p1HRivqcvKldhq0AZ/ct8g4RiZNjIm JarVsbJw/nHNXkTNfySt+FLD/Lid42RxqdWZZnM2S/dRZaK0KBN81F0dSvfaog== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1637976229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=JXvHU/eN0iJfDqMWbOd2UGXYgpl11UY148yTUdaqnAk=; b=0jNcPNgz56R9m5AGoyTj7IbGVRdx1dNEXeV5JlIcEI27fXTSQCtAvXBudMGXD7KkOugn5p xQqnq+Ij5fdYP4Bw== From: Thomas Gleixner To: LKML Cc: Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , Jason Gunthorpe , Megha Dey , Ashok Raj , linux-pci@vger.kernel.org, Greg Kroah-Hartman , linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com Subject: [patch 13/32] xen/pcifront: Rework MSI handling References: <20211126230957.239391799@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Sat, 27 Nov 2021 02:23:49 +0100 (CET) Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Message-ID: <20211127012349.qAQD-0lGaW4NNS4GKtPk8aEIhk-ukgFjqOouPcA_9wg@z> Replace the about to vanish iterators. Signed-off-by: Thomas Gleixner --- drivers/pci/xen-pcifront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c @@ -262,7 +262,7 @@ static int pci_frontend_enable_msix(stru } i = 0; - for_each_pci_msi_entry(entry, dev) { + msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) { op.msix_entries[i].entry = entry->msi_index; /* Vector is useless at this point. */ op.msix_entries[i].vector = -1;