sparse, checkpatch cleanup in mach-omap2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | fix sparse, checkpatch warnings in OMAP2/3 PRCM/PM codearch/ arch/ arch/ +9 more | +110 | 0 replies | |
| 2/5 | fix sparse, checkpatch warnings in OMAP2/3 SMS/GPMC/SRAM codearch/ arch/ arch/ +3 more | +38 | 0 replies | |
| 3/5 | fix sparse, checkpatch warnings in OMAP2/3 IRQ codearch/ | +36 | 0 replies | |
| 4/5 | fix sparse, checkpatch warnings in OMAP2/3 SCM codearch/ include/ | +14 | 0 replies | |
| 5/5 | Fix remaining sparse warnings in arch/arm/mach-omap2arch/ arch/ arch/ +11 more | +49 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] sparse, checkpatch cleanup in mach-omap2
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