From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937996AbXGLAid (ORCPT ); Wed, 11 Jul 2007 20:38:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934226AbXGLAiT (ORCPT ); Wed, 11 Jul 2007 20:38:19 -0400 Received: from canuck.infradead.org ([209.217.80.40]:48544 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935262AbXGLAiS (ORCPT ); Wed, 11 Jul 2007 20:38:18 -0400 Date: Wed, 11 Jul 2007 17:37:31 -0700 From: Greg KH To: Matthew Wilcox Cc: Greg Kroah-Hartman , Randy Dunlap , James.Smart@Emulex.Com, pcihpd-discuss@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, Andrew Morton , Alan Cox Subject: Re: [Pcihpd-discuss] [PATCH 26/34] PCI: add pci_try_set_mwi Message-ID: <20070712003731.GA8126@kroah.com> References: <11841968092270-git-send-email-gregkh@suse.de> <11841968133805-git-send-email-gregkh@suse.de> <11841968172168-git-send-email-gregkh@suse.de> <11841968221388-git-send-email-gregkh@suse.de> <11841968302709-git-send-email-gregkh@suse.de> <11841968341206-git-send-email-gregkh@suse.de> <11841968561560-git-send-email-gregkh@suse.de> <11841968591561-git-send-email-gregkh@suse.de> <11841968633587-git-send-email-gregkh@suse.de> <20070712000149.GX9704@parisc-linux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070712000149.GX9704@parisc-linux.org> User-Agent: Mutt/1.5.15 (2007-04-06) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2007 at 06:01:49PM -0600, Matthew Wilcox wrote: > On Wed, Jul 11, 2007 at 04:31:40PM -0700, Greg Kroah-Hartman wrote: > > As suggested by Andrew, add pci_try_set_mwi(), which does not require > > return-value checking. > > Seems like a daft suggestion. What's wrong with just removing the > __must_check from pci_set_mwi()? Did it find any bugs? > > > --- a/drivers/scsi/lpfc/lpfc_init.c > > +++ b/drivers/scsi/lpfc/lpfc_init.c > > @@ -1578,10 +1578,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) > > INIT_LIST_HEAD(&phba->fc_nodes); > > > > pci_set_master(pdev); > > - retval = pci_set_mwi(pdev); > > - if (retval) > > - dev_printk(KERN_WARNING, &pdev->dev, > > - "Warning: pci_set_mwi returned %d\n", retval); > > + pci_try_set_mwi(pdev); > > Why remove the warning? Presumably people want to know if pci_set_mwi > failed. Randy, this was your change, right? thanks, greg k-h