* [PATCH] [PATCH] Rename pdc_init
@ 2006-10-06 16:12 Matthew Wilcox
2006-10-06 16:42 ` Jeff Garzik
0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2006-10-06 16:12 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel, Matthew Wilcox
parisc uses pdc_init() for different purposes, so call it pdc202xx_init
instead.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
---
drivers/ata/pata_pdc202xx_old.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index 5ba9eb2..8850ed5 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -402,12 +402,12 @@ static struct pci_driver pdc_pci_driver
.remove = ata_pci_remove_one
};
-static int __init pdc_init(void)
+static int __init pdc202xx_init(void)
{
return pci_register_driver(&pdc_pci_driver);
}
-static void __exit pdc_exit(void)
+static void __exit pdc202xx_exit(void)
{
pci_unregister_driver(&pdc_pci_driver);
}
@@ -418,5 +418,5 @@ MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pdc);
MODULE_VERSION(DRV_VERSION);
-module_init(pdc_init);
-module_exit(pdc_exit);
+module_init(pdc202xx_init);
+module_exit(pdc202xx_exit);
--
1.4.1.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] [PATCH] Rename pdc_init
2006-10-06 16:12 [PATCH] [PATCH] Rename pdc_init Matthew Wilcox
@ 2006-10-06 16:42 ` Jeff Garzik
2006-10-06 17:03 ` Matthew Wilcox
2006-10-06 17:30 ` Alan Cox
0 siblings, 2 replies; 6+ messages in thread
From: Jeff Garzik @ 2006-10-06 16:42 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Alan Cox, linux-kernel
Matthew Wilcox wrote:
> parisc uses pdc_init() for different purposes, so call it pdc202xx_init
> instead.
>
> Signed-off-by: Matthew Wilcox <matthew@wil.cx>
I don't mind the patch (you should have CC'd me and linux-ide though),
but where is parisc's pdc_init actually used, and why is it global?
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [PATCH] Rename pdc_init
2006-10-06 16:42 ` Jeff Garzik
@ 2006-10-06 17:03 ` Matthew Wilcox
2006-10-06 17:30 ` Alan Cox
1 sibling, 0 replies; 6+ messages in thread
From: Matthew Wilcox @ 2006-10-06 17:03 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Alan Cox, linux-kernel
On Fri, Oct 06, 2006 at 12:42:18PM -0400, Jeff Garzik wrote:
> I don't mind the patch (you should have CC'd me and linux-ide though),
We really need to figure out how to communicate that better. I just
sent it to the maintainer (as listed in MODULE_AUTHOR). Do we need a
MODULE_CHANGES_CC macro too?
> but where is parisc's pdc_init actually used, and why is it global?
Hmm. Embarrassing. Seems it's a stale prototype; I'll delete it.
OTOH, there is a pdc_init in avr32, and it's prudent to not have two
functions of the same name, so that you know which one is appearing in a
backtrace. So it might be a good idea to apply this patch anyway.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [PATCH] Rename pdc_init
2006-10-06 16:42 ` Jeff Garzik
2006-10-06 17:03 ` Matthew Wilcox
@ 2006-10-06 17:30 ` Alan Cox
2006-10-06 17:07 ` Matthew Wilcox
1 sibling, 1 reply; 6+ messages in thread
From: Alan Cox @ 2006-10-06 17:30 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Matthew Wilcox, linux-kernel
Ar Gwe, 2006-10-06 am 12:42 -0400, ysgrifennodd Jeff Garzik:
> Matthew Wilcox wrote:
> > parisc uses pdc_init() for different purposes, so call it pdc202xx_init
> > instead.
> >
> > Signed-off-by: Matthew Wilcox <matthew@wil.cx>
>
> I don't mind the patch (you should have CC'd me and linux-ide though),
> but where is parisc's pdc_init actually used, and why is it global?
Can you cc me the patch as well ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [PATCH] Rename pdc_init
2006-10-06 17:30 ` Alan Cox
@ 2006-10-06 17:07 ` Matthew Wilcox
2006-10-06 17:43 ` Alan Cox
0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2006-10-06 17:07 UTC (permalink / raw)
To: Alan Cox; +Cc: Jeff Garzik, linux-kernel
On Fri, Oct 06, 2006 at 06:30:21PM +0100, Alan Cox wrote:
> Ar Gwe, 2006-10-06 am 12:42 -0400, ysgrifennodd Jeff Garzik:
> > Matthew Wilcox wrote:
> > > parisc uses pdc_init() for different purposes, so call it pdc202xx_init
> > > instead.
> > >
> > > Signed-off-by: Matthew Wilcox <matthew@wil.cx>
> >
> > I don't mind the patch (you should have CC'd me and linux-ide though),
> > but where is parisc's pdc_init actually used, and why is it global?
>
> Can you cc me the patch as well ?
Um, I did. Did your spamfilter eat it?
From: Matthew Wilcox <matthew@wil.cx>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org, Matthew Wilcox <matthew@wil.cx>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] [PATCH] Rename pdc_init
2006-10-06 17:07 ` Matthew Wilcox
@ 2006-10-06 17:43 ` Alan Cox
0 siblings, 0 replies; 6+ messages in thread
From: Alan Cox @ 2006-10-06 17:43 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Jeff Garzik, linux-kernel
Ar Gwe, 2006-10-06 am 11:07 -0600, ysgrifennodd Matthew Wilcox:
> > Can you cc me the patch as well ?
>
> Um, I did. Did your spamfilter eat it?
Ah found it, no my filters filed it under parisc 8)
"NAK" to the patch as is because the other drivers for consistency use
the same prefix for all functions for the same chip. I will however add
a TODO note to myself to rename them all properly next time I work on
that driver.
Alan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-06 17:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 16:12 [PATCH] [PATCH] Rename pdc_init Matthew Wilcox
2006-10-06 16:42 ` Jeff Garzik
2006-10-06 17:03 ` Matthew Wilcox
2006-10-06 17:30 ` Alan Cox
2006-10-06 17:07 ` Matthew Wilcox
2006-10-06 17:43 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox