All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/8] net/tftp.c: clenups for checkpatch compliance
@ 2011-05-14 15:49 Luca Ceresoli
  2011-05-14 15:49 ` [U-Boot] [PATCH 1/8] net/tftp.c: cosmetic: fix lines over 80 characters Luca Ceresoli
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Luca Ceresoli @ 2011-05-14 15:49 UTC (permalink / raw)
  To: u-boot

Hi,

net/tftp.c currently raises 82 errors and 99 warnings.
This patchset fixes most of them, leaving 3 errors and 14 warnings.

Since the changes are quite massive I split them in separate patches, one
per each category of errors/warning.

These issues are still present:
 - ERROR: else should follow close brace '}'
   these are due to the presence of an #ifdef right after or before the else
   (to compile an entire branch conditionally), and cannot be removed easily
   without compromising readability;
 - WARNING: consider using kstrto* in preference to simple_*
   which are Linux-specific;
 - WARNING: externs should be avoided in .c files
   these are due to loop-dependencies with other files;
 - WARNING: Use of volatile is usually wrong [...]
   I've had a quick look at these, but I don't know in detail how the
   networking code and Ethernet drivers (and maybe DMA?) interact, so I cannot
   remove them being sure that things will continue working;
 - WARNING: plain inline is preferred over __inline__
   as I see many "__inline__"s in the current source and don't know what the
   U-Boot policy is.

Luca Ceresoli (8):
  net/tftp.c: cosmetic: fix lines over 80 characters
  net/tftp.c: cosmetic: fix whitespace issues
  net/tftp.c: cosmetic: fix pointer syntax issues
  net/tftp.c: cosmetic: do not use assignment in if condition
  net/tftp.c: cosmetic: fix brace issues
  net/tftp.c: cosmetic: trailing statements should be on next line
  net/tftp.c: cosmetic: fix indentation
  net/tftp.c: cosmetic: do not initialise statics to 0 or NULL

 net/tftp.c |  309 ++++++++++++++++++++++++++++++++----------------------------
 1 files changed, 167 insertions(+), 142 deletions(-)

Luca

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

end of thread, other threads:[~2011-05-19 19:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-14 15:49 [U-Boot] [PATCH 0/8] net/tftp.c: clenups for checkpatch compliance Luca Ceresoli
2011-05-14 15:49 ` [U-Boot] [PATCH 1/8] net/tftp.c: cosmetic: fix lines over 80 characters Luca Ceresoli
2011-05-19 19:36   ` Wolfgang Denk
2011-05-14 15:49 ` [U-Boot] [PATCH 2/8] net/tftp.c: cosmetic: fix whitespace issues Luca Ceresoli
2011-05-19 19:36   ` Wolfgang Denk
2011-05-14 15:49 ` [U-Boot] [PATCH 3/8] net/tftp.c: cosmetic: fix pointer syntax issues Luca Ceresoli
2011-05-19 19:36   ` Wolfgang Denk
2011-05-14 15:49 ` [U-Boot] [PATCH 4/8] net/tftp.c: cosmetic: do not use assignment in if condition Luca Ceresoli
2011-05-19 19:36   ` Wolfgang Denk
2011-05-14 15:50 ` [U-Boot] [PATCH 5/8] net/tftp.c: cosmetic: fix brace issues Luca Ceresoli
2011-05-19 19:36   ` Wolfgang Denk
2011-05-14 15:50 ` [U-Boot] [PATCH 6/8] net/tftp.c: cosmetic: trailing statements should be on next line Luca Ceresoli
2011-05-19 19:37   ` Wolfgang Denk
2011-05-14 15:50 ` [U-Boot] [PATCH 7/8] net/tftp.c: cosmetic: fix indentation Luca Ceresoli
2011-05-19 19:37   ` Wolfgang Denk
2011-05-14 15:50 ` [U-Boot] [PATCH 8/8] net/tftp.c: cosmetic: do not initialise statics to 0 or NULL Luca Ceresoli
2011-05-19 19:37   ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.