public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] sparse, checkpatch cleanup in mach-omap2
@ 2008-05-07 17:52 Paul Walmsley
  2008-05-07 17:52 ` [PATCH 2/5] fix sparse, checkpatch warnings in OMAP2/3 SMS/GPMC/SRAM code Paul Walmsley
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Paul Walmsley @ 2008-05-07 17:52 UTC (permalink / raw)
  To: linux-omap

It's springtime in the Northern Hemisphere; time for plants to flower,
students to graduate, or not, and Linux hackers to generate cleanup
patches against the source tree...

These patches fix all of the sparse warnings against the
arch/arm/mach-omap2 directory, and fix some of the checkpatch.pl
warnings also.  The individual patch descriptions discuss the main
changes involved.  sparse did find a few stinkers - I think the worst 
was a shadowed variable in clock.c.

There are a few other minor changes involved.  The main one was that
the unlikely() and likely() branch predictor hints got removed.

The sparse fixes do have one downside: some additional uglification, caused
by the addition of __force to pointer->integer and integer->pointer casts.
The rest of the kernel seems to have accepted this tradeoff.

Compile-tested with OSK5912, N800, 2430SDP, and 3430SDP configs;
boot-tested on 3430SDP ES2.


- Paul

---

diffstat:
 arch/arm/mach-omap2/clock.c               |  107 ++++++++++++++---------------
 arch/arm/mach-omap2/clock.h               |    4 +
 arch/arm/mach-omap2/clock24xx.c           |   23 +++---
 arch/arm/mach-omap2/clockdomain.c         |    5 +
 arch/arm/mach-omap2/cm.h                  |    4 +
 arch/arm/mach-omap2/control.c             |   13 ++--
 arch/arm/mach-omap2/devices.c             |   10 +--
 arch/arm/mach-omap2/gpmc.c                |   42 ++++++-----
 arch/arm/mach-omap2/id.c                  |    9 +-
 arch/arm/mach-omap2/io.c                  |   15 ++--
 arch/arm/mach-omap2/irq.c                 |   58 ++++++++++------
 arch/arm/mach-omap2/memory.h              |    7 ++
 arch/arm/mach-omap2/mux.c                 |   14 ++--
 arch/arm/mach-omap2/pm.c                  |   37 ++++++----
 arch/arm/mach-omap2/powerdomain.c         |    2 -
 arch/arm/mach-omap2/prcm.c                |   12 ++-
 arch/arm/mach-omap2/prm.h                 |    6 +-
 arch/arm/mach-omap2/sdrc.h                |    4 +
 arch/arm/mach-omap2/serial.c              |   21 +++---
 arch/arm/mach-omap2/usb-ehci.c            |    2 -
 include/asm-arm/arch-omap/board-3430sdp.h |    1 
 include/asm-arm/arch-omap/board.h         |    6 +-
 include/asm-arm/arch-omap/clock.h         |    7 +-
 include/asm-arm/arch-omap/control.h       |   16 ++--
 include/asm-arm/arch-omap/cpu.h           |    6 +-
 include/asm-arm/arch-omap/mmc.h           |    4 +
 include/asm-arm/arch-omap/omap24xx.h      |    1 
 include/asm-arm/arch-omap/omapfb.h        |    1 
 include/asm-arm/arch-omap/powerdomain.h   |    1 
 include/asm-arm/arch-omap/prcm.h          |    5 +
 include/asm-arm/arch-omap/sram.h          |    1 
 include/asm-arm/arch-omap/system.h        |    4 +
 include/asm-arm/arch-omap/timex.h         |    2 +
 include/asm-arm/arch-omap/usb.h           |    3 +
 34 files changed, 247 insertions(+), 206 deletions(-)

size:
   text    data     bss     dec     hex filename
3271533  155216  101256 3528005  35d545 vmlinux.3430sdp.orig
3271501  155216  101256 3527973  35d525 vmlinux.3430sdp.patched


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

end of thread, other threads:[~2008-05-09 21:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 17:52 [PATCH 0/5] sparse, checkpatch cleanup in mach-omap2 Paul Walmsley
2008-05-07 17:52 ` [PATCH 2/5] fix sparse, checkpatch warnings in OMAP2/3 SMS/GPMC/SRAM code Paul Walmsley
2008-05-07 17:52 ` [PATCH 1/5] fix sparse, checkpatch warnings in OMAP2/3 PRCM/PM code Paul Walmsley
2008-05-07 17:52 ` [PATCH 4/5] fix sparse, checkpatch warnings in OMAP2/3 SCM code Paul Walmsley
2008-05-07 17:52 ` [PATCH 5/5] Fix remaining sparse warnings in arch/arm/mach-omap2 Paul Walmsley
2008-05-07 17:52 ` [PATCH 3/5] fix sparse, checkpatch warnings in OMAP2/3 IRQ code Paul Walmsley
2008-05-09 21:42 ` [PATCH 0/5] sparse, checkpatch cleanup in mach-omap2 Tony Lindgren

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