From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932915AbXA1WJy (ORCPT ); Sun, 28 Jan 2007 17:09:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932917AbXA1WJy (ORCPT ); Sun, 28 Jan 2007 17:09:54 -0500 Received: from ozlabs.org ([203.10.76.45]:52784 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932915AbXA1WJv (ORCPT ); Sun, 28 Jan 2007 17:09:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17853.7463.911235.324340@cargo.ozlabs.ibm.com> Date: Mon, 29 Jan 2007 09:01:11 +1100 From: Paul Mackerras To: ebiederm@xmission.com (Eric W. Biederman) Cc: Greg Kroah-Hartman , Tony Luck , Grant Grundler , Ingo Molnar , linux-kernel@vger.kernel.org, Kyle McMartin , linuxppc-dev@ozlabs.org, Brice Goglin , shaohua.li@intel.com, linux-pci@atrey.karlin.mff.cuni.cz, "David S. Miller" Subject: Re: [PATCH 1/6] msi: Kill msi_lookup_irq In-Reply-To: References: <1169714047.65693.647693675533.qpush@cradle> X-Mailer: VM 7.19 under Emacs 21.4.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman writes: > @@ -693,15 +664,14 @@ int pci_enable_msi(struct pci_dev* dev) > if (!pos) > return -EINVAL; > > - WARN_ON(!msi_lookup_irq(dev, PCI_CAP_ID_MSI)); > + WARN_ON(!!dev->msi_enabled); Minor nit: what's wrong with just WARN_ON(dev->msi_enabled) ? Also here: > @@ -836,16 +811,14 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec) > return -EINVAL; /* duplicate entry */ > } > } > - temp = dev->irq; > - WARN_ON(!msi_lookup_irq(dev, PCI_CAP_ID_MSIX)); > + WARN_ON(!!dev->msix_enabled); Paul.