Thread (18 messages) 18 messages, 4 authors, 2009-10-01

Re: [PATCH] ks8851_ml ethernet network driver

From: Greg KH <hidden>
Date: 2009-09-17 13:04:10

On Wed, Sep 16, 2009 at 08:48:01PM -0700, David Miller wrote:
From: Greg KH <redacted>
Date: Wed, 16 Sep 2009 19:38:36 -0700
quoted
From: Choi, David <redacted>

This is a network driver for the ks8851 16bit MLL ethernet device.

Signed-off-by: David J. Choi <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This doesn't even build cleanly:

drivers/net/ks8851_mll.c: In function ‘ks_inblk’:
drivers/net/ks8851_mll.c:555: warning: cast from pointer to integer of different size
drivers/net/ks8851_mll.c:558: warning: passing argument 1 of ‘_readw’ makes pointer from integer without a cast
drivers/net/ks8851_mll.c: In function ‘ks_outblk’:
drivers/net/ks8851_mll.c:571: warning: cast from pointer to integer of different size
drivers/net/ks8851_mll.c:574: warning: passing argument 2 of ‘_writew’ makes pointer from integer without a cast
Ick, David Choi, what happened here?
It also has a big "#define DEBUG" at the beginning of the driver.

And it also has stuff like:

+#define MALLOC(x)		kmalloc(x, GFP_KERNEL)

which actually decreases the readability of this driver.

Please fix this up.
Sorry about that, I'll do a closer review next time before resubmitting.

David Choi, care to fix this, and the comments from Stephen up?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help