Re: 2.5.22 fix for pci_hotplug

Adrian Bunk (bunk@fs.tum.de)
Wed, 19 Jun 2002 23:26:59 +0200 (CEST)


On Wed, 19 Jun 2002, Greg KH wrote:

> > He tries to fix the following compile error that is caused by Martin
> > Dalecki's "[PATCH] 2.5.21 kill warnings 4/19" that is included in 2.5.22:
>
> Yeah, it looks like Martin got it wrong :)
>
> Can you try this patch instead and let me know if it fixes it or not?

Yes, this patch fixes it. A similar patch is needed for
pci_hotplug_util.c...

> thanks,
>
> greg k-h
>
> diff -Nru a/drivers/hotplug/pci_hotplug_core.c b/drivers/hotplug/pci_hotplug_core.c
> --- a/drivers/hotplug/pci_hotplug_core.c Wed Jun 19 10:36:21 2002
> +++ b/drivers/hotplug/pci_hotplug_core.c Wed Jun 19 10:36:21 2002
> @@ -48,7 +48,7 @@
> #define MY_NAME THIS_MODULE->name
> #endif
>
> -#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt, MY_NAME, __FUNCTION__, ## arg); } while (0)
> +#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __FUNCTION__ , ## arg); } while (0)
> #define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
> #define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
> #define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- 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/