Initial sparse fix series
Get series with b4
b4 am 20121104183025.GK15839@bill-the-catVersions newest first · linked by author and title
- v2 Latest0 of 32 patches 0 repliesNew
- v12 of 32 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
None of the 32 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [U-Boot] [PATCH v2 00/32] Initial sparse fix series
Quoted 46 lines · Kim Phillips
[v2 summary: zero inter-commit build errors on all power, arm, and mips boards (which means some patches got merged into patch #1), checkpatch fixes, and postponement of the libfdt changes, primarily to get the bulk of these in during this merge window]
This 25-patch series only begins to address making u-boot source more 'sparseable,' or sparse-clean, ultimately to catch type, address space, and endianness mismatches and generally improve code quality. E.g., a couple of endianness bugs are found in
of_bus_default_translate()andfdt_get_base_address()(not includeded in this v2 series - fixes pending libfdt patch for dtc).Patch 1 adds endianness attributes to
byteorder.hhelpers, e.g.,cpu_to_be32(). This is required for correct operation and prevents sparse from emitting false-positives. It comes with the side effect of breaking many builds, because u-boot has various places where attributes were being defined differently, so it includes fixes for those.Patches 2-5 fix issues where u-boot had imported linux header code and the importer simply force-#defined sparse-specific attributes to nothing, to allow u-boot to build without redefined warnings.
Patches 6-7 are general sparse fixes to common powerpc areas.
Patches 8-10 are general sparse fixes to common header areas (e.g., patch 8 changes the long-standing u-boot image header types to
__be32, as per u-boot image definition).Patches 11-12 addresses sparse fixes for the net subsystem.
Patches 13-14 do the same for
lib/.Patches 15-17 for Power Arch's mpc8xxx, 83xx, and 85xx subsystems.
Last but not least, patches 18-25 attempt to clean up various drivers.
Note that the two libfdt patches present in series one are omitted here for u-boot merge window, they will be resubmitted after dtc have merged a libfdt-dependent patch.
For authors of new patches not willing to sift through the still quite large sparse output for their board/platform, though interested in what sparse has to say about their new code, it is recommended to build with make C=1 after changes such that sparse output will only include newly built code.
Quoted 6 lines
fyi, I've pushed the series onto the u-boot-mpc83xx tree, 'sparsefixes' branch:
http://git.denx.de/u-boot.git/?p=u-boot/u-boot-mpc83xx.git;a=shortlog;h=refs/heads/sparsefixes
All power, arm, mips boards tested.
With a small change in #1 so that it applied correctly, applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121104/6ae94488/attachment.pgp>