From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754258Ab2IOWX7 (ORCPT ); Sat, 15 Sep 2012 18:23:59 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:62273 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271Ab2IOWXz (ORCPT ); Sat, 15 Sep 2012 18:23:55 -0400 MIME-Version: 1.0 In-Reply-To: <20120915075301.GA31044@avionic-0098.mockup.avionic-design.de> References: <1347655456-2542-1-git-send-email-thierry.reding@avionic-design.de> <1347655456-2542-2-git-send-email-thierry.reding@avionic-design.de> <20120915075301.GA31044@avionic-0098.mockup.avionic-design.de> From: Bjorn Helgaas Date: Sat, 15 Sep 2012 16:23:33 -0600 Message-ID: Subject: Re: [PATCH 2/2] PCI: Provide a default pcibios_update_irq() To: Thierry Reding Cc: Geert Uytterhoeven , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Tony Luck , Fenghua Yu , Ralf Baechle , Paul Mundt , "David S. Miller" , Chris Metcalf , Guan Xuetao , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Chris Zankel , Greg Ungerer , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-m68k@vger.kernel.org, linux-mips@linux-mips.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-pci@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 15, 2012 at 1:53 AM, Thierry Reding wrote: > On Sat, Sep 15, 2012 at 09:32:10AM +0200, Geert Uytterhoeven wrote: >> On Fri, Sep 14, 2012 at 10:44 PM, Thierry Reding >> wrote: >> > --- a/drivers/pci/setup-irq.c >> > +++ b/drivers/pci/setup-irq.c >> > @@ -17,6 +17,14 @@ >> > #include >> > #include >> > >> > +void __devinit __weak pcibios_update_irq(struct pci_dev *dev, int irq) >> > +{ >> > +#ifdef CONFIG_PCI_DEBUG >> > + printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", irq, >> > + pci_name(dev)); >> >> pr_debug()? >> Or even better, dev_dbg()? > > The problem with pr_debug() and dev_dbg() is that they will be compiled > out if DEBUG is not defined. Perhaps we should pass -DDEBUG if PCI_DEBUG > is configured and make this dev_dbg()? Sorry, fat-fingered the previous empty response. We already have this in drivers/pci/Makefile: ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG so dev_dbg() should be perfect.