Re: [PATCH 1/2] 8139too: clean up spaces and TABs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Németh Márton
Date: Sunday, June 15, 2008 - 12:50 am

Stefan Richter wrote:

Yes, I checked this. When I compared the "objdump -d" output I found that
only the function calls are changed where the __LINE__ is a parameter.

Sorry about taking your time. My intention was to make the 8139too source
code better as I am using this driver actively to communicate with the
digital world. I have chosen the checkpatch.pl's output to compare the
whether the old and the new code are better or not. Maybe that was a mistake.

I would like to try it again, but in a different way. I collected here
the different problems reported by checkpatch.pl. I divided it to two
groups according to your comments which I think it worth to deal with:

 + ERROR: Macros with complex values should be enclosed in parenthesis
 + WARNING: __func__ should be used instead of gcc specific __FUNCTION__
 + WARNING: plain inline is preferred over __inline__
 + WARNING: Use #include <linux/io.h> instead of <asm/io.h>
 + WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>

and the second group which it seems that may hurt somebody:

 - ERROR: code indent should use tabs where possible
 - ERROR: space required after that ',' (ctx:VxV)
 - ERROR: space required before the open brace '{'
 - ERROR: space required before the open parenthesis '('
 - ERROR: spaces required around that '=' (ctx:VxW)
 - ERROR: trailing statements should be on next line
 - WARNING: braces {} are not necessary for single statement blocks
 - WARNING: do not add new typedefs
 - WARNING: line over 80 characters
 - WARNING: space prohibited between function name and open parenthesis '('

This is a much smaller set of changes. What do you think?

Regards,

	Márton Németh

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] 8139too: clean up spaces and TABs, Németh Márton, (Sat Jun 14, 5:36 am)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Stefan Richter, (Sat Jun 14, 6:33 am)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Németh Márton, (Sat Jun 14, 11:43 am)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Stefan Richter, (Sat Jun 14, 12:53 pm)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Ondrej Zary, (Sat Jun 14, 2:21 pm)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Francois Romieu, (Sat Jun 14, 2:39 pm)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, David Newall, (Sat Jun 14, 11:21 pm)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Németh Márton, (Sun Jun 15, 12:50 am)
[PATCH] 8139too: some style cleanups, Németh Márton, (Sun Jun 15, 12:52 am)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Stefan Richter, (Mon Jun 16, 8:07 am)
Re: [PATCH 1/2] 8139too: clean up spaces and TABs, Stephen Hemminger, (Mon Jun 16, 9:31 am)
Re: [PATCH] 8139too: some style cleanups, Jeff Garzik, (Thu Jun 26, 11:09 pm)