public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/net/ne3210.c: cleanups
@ 2005-02-18 23:46 Adrian Bunk
  2005-02-21  1:40 ` Jeff Garzik
  0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2005-02-18 23:46 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-net, linux-kernel

This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/net/ne3210.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-17 21:55:37.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -196,9 +193,6 @@
 	ei_status.word16 = 1;
 	ei_status.priv = phys_mem;
 
-	if (ei_debug > 0)
-		printk(version);
-
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
 	ei_status.block_output = &ne3210_block_output;
@@ -359,12 +353,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2.6 patch] drivers/net/ne3210.c: cleanups
  2005-02-18 23:46 [2.6 patch] drivers/net/ne3210.c: cleanups Adrian Bunk
@ 2005-02-21  1:40 ` Jeff Garzik
  2005-02-21 14:48   ` Adrian Bunk
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Garzik @ 2005-02-21  1:40 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-net, linux-kernel

Adrian Bunk wrote:
> -	if (ei_debug > 0)
> -		printk(version);


I agree the version variable is outdated, but I disagree that the driver 
intro banner should be removed completely.

	Jeff



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2.6 patch] drivers/net/ne3210.c: cleanups
  2005-02-21  1:40 ` Jeff Garzik
@ 2005-02-21 14:48   ` Adrian Bunk
  2005-02-21 20:39     ` Jeff Garzik
  0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2005-02-21 14:48 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-net, linux-kernel

On Sun, Feb 20, 2005 at 08:40:13PM -0500, Jeff Garzik wrote:
> Adrian Bunk wrote:
> >-	if (ei_debug > 0)
> >-		printk(version);
> 
> 
> I agree the version variable is outdated, but I disagree that the driver 
> intro banner should be removed completely.

A few lines above, the driver already prints "ne3210.c: remapped...". 
So what exactly should be printed at this place?
The patch below only removes the version information, but the printk 
looks a bit silly.


<--  snip  -->


This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/net/ne3210.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-21 15:10:02.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -197,7 +194,7 @@
 	ei_status.priv = phys_mem;
 
 	if (ei_debug > 0)
-		printk(version);
+		printk("ne3210 driver");
 
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
@@ -359,12 +356,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2.6 patch] drivers/net/ne3210.c: cleanups
  2005-02-21 14:48   ` Adrian Bunk
@ 2005-02-21 20:39     ` Jeff Garzik
  2005-02-25  0:00       ` Adrian Bunk
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Garzik @ 2005-02-21 20:39 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-net, linux-kernel

Adrian Bunk wrote:
> @@ -197,7 +194,7 @@
>  	ei_status.priv = phys_mem;
>  
>  	if (ei_debug > 0)
> -		printk(version);
> +		printk("ne3210 driver");


missing newline.  Do something like "ns3210 __DATE__ loaded.\n"

Ditto for seeq8002.

	Jeff



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2.6 patch] drivers/net/ne3210.c: cleanups
  2005-02-21 20:39     ` Jeff Garzik
@ 2005-02-25  0:00       ` Adrian Bunk
  0 siblings, 0 replies; 10+ messages in thread
From: Adrian Bunk @ 2005-02-25  0:00 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-net, linux-kernel

On Mon, Feb 21, 2005 at 03:39:54PM -0500, Jeff Garzik wrote:
> Adrian Bunk wrote:
> >@@ -197,7 +194,7 @@
> > 	ei_status.priv = phys_mem;
> > 
> > 	if (ei_debug > 0)
> >-		printk(version);
> >+		printk("ne3210 driver");
> 
> 
> missing newline.  Do something like "ns3210 __DATE__ loaded.\n"
> 
> Ditto for seeq8002.

Sorry for the missing newline.

I have to admit I still don't see why these printk's have to stay:
In both files, there are other printk's nearby that print the name of 
the driver.

__DATE__ doesn't provide any information that wasn't already available 
in the first line of the dmesg output.

> 	Jeff

cu
Adrian

--

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2.6 patch] drivers/net/ne3210.c: cleanups
@ 2005-04-19  0:36 Adrian Bunk
  0 siblings, 0 replies; 10+ messages in thread
From: Adrian Bunk @ 2005-04-19  0:36 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, netdev

This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/net/ne3210.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-21 15:10:02.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -197,7 +194,7 @@
 	ei_status.priv = phys_mem;
 
 	if (ei_debug > 0)
-		printk(version);
+		printk("ne3210 loaded.\n");
 
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
@@ -359,12 +356,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2.6 patch] drivers/net/ne3210.c: cleanups
@ 2005-05-02  1:46 Adrian Bunk
  0 siblings, 0 replies; 10+ messages in thread
From: Adrian Bunk @ 2005-05-02  1:46 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, netdev

This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 19 Apr 2005

 drivers/net/ne3210.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-21 15:10:02.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -197,7 +194,7 @@
 	ei_status.priv = phys_mem;
 
 	if (ei_debug > 0)
-		printk(version);
+		printk("ne3210 loaded.\n");
 
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
@@ -359,12 +356,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2.6 patch] drivers/net/ne3210.c: cleanups
@ 2005-05-30 20:56 Adrian Bunk
  0 siblings, 0 replies; 10+ messages in thread
From: Adrian Bunk @ 2005-05-30 20:56 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, netdev

This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 2 May 2005
- 19 Apr 2005

 drivers/net/ne3210.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-21 15:10:02.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -197,7 +194,7 @@
 	ei_status.priv = phys_mem;
 
 	if (ei_debug > 0)
-		printk(version);
+		printk("ne3210 loaded.\n");
 
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
@@ -359,12 +356,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2.6 patch] drivers/net/ne3210.c: cleanups
@ 2005-06-24 20:09 Adrian Bunk
  2005-06-24 20:36 ` Jean Delvare
  0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2005-06-24 20:09 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Jeff Garzik, linux-kernel, netdev

This patch contains the following cleanups:
- make two needlessly global functions static
- kill an ancient version variable

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 30 May 2005
- 2 May 2005
- 19 Apr 2005

 drivers/net/ne3210.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c.old	2005-02-16 16:09:39.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/ne3210.c	2005-02-21 15:10:02.000000000 +0100
@@ -26,9 +26,6 @@
 	Updated to EISA probing API 5/2003 by Marc Zyngier.
 */
 
-static const char *version =
-	"ne3210.c: Driver revision v0.03, 30/09/98\n";
-
 #include <linux/module.h>
 #include <linux/eisa.h>
 #include <linux/kernel.h>
@@ -197,7 +194,7 @@
 	ei_status.priv = phys_mem;
 
 	if (ei_debug > 0)
-		printk(version);
+		printk("ne3210 loaded.\n");
 
 	ei_status.reset_8390 = &ne3210_reset_8390;
 	ei_status.block_input = &ne3210_block_input;
@@ -359,12 +356,12 @@
 MODULE_DESCRIPTION("NE3210 EISA Ethernet driver");
 MODULE_LICENSE("GPL");
 
-int ne3210_init(void)
+static int ne3210_init(void)
 {
 	return eisa_driver_register (&ne3210_eisa_driver);
 }
 
-void ne3210_cleanup(void)
+static void ne3210_cleanup(void)
 {
 	eisa_driver_unregister (&ne3210_eisa_driver);
 }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2.6 patch] drivers/net/ne3210.c: cleanups
  2005-06-24 20:09 Adrian Bunk
@ 2005-06-24 20:36 ` Jean Delvare
  0 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-06-24 20:36 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Andrew Morton, Jeff Garzik, linux-kernel, netdev

Hi Adrian,

>  	if (ei_debug > 0)
> -		printk(version);
> +		printk("ne3210 loaded.\n");

No KERN_DEBUG?

Thanks,
-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-06-24 20:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-18 23:46 [2.6 patch] drivers/net/ne3210.c: cleanups Adrian Bunk
2005-02-21  1:40 ` Jeff Garzik
2005-02-21 14:48   ` Adrian Bunk
2005-02-21 20:39     ` Jeff Garzik
2005-02-25  0:00       ` Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-04-19  0:36 Adrian Bunk
2005-05-02  1:46 Adrian Bunk
2005-05-30 20:56 Adrian Bunk
2005-06-24 20:09 Adrian Bunk
2005-06-24 20:36 ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox