[PATCH 00/22] add support for clang-analyzer with scan-build

Sascha Hauer s.hauer at pengutronix.de
Fri Mar 14 09:04:44 PDT 2025


On Thu, 13 Mar 2025 08:34:23 +0100, Ahmad Fatoum wrote:
> With the changes, it's now possible to build barebox for sandbox
> with allyesconfig with clang under scan-build with:
> 
>   export LLVM=-19 # or whatever your clang suffix is if you've one
>   scan-build${LLVM} --use-cc=clang${LLVM} make
> 
> For this build to run to completion, a number of things that clang
> treats as errors need to be resolved as well, which is included
> in this series.
> 
> [...]

Applied, thanks!

[01/22] kbuild: add support for clang-analyzer with scan-build
        https://git.pengutronix.de/cgit/barebox/commit/?id=da3ab7931a95 (link may not be stable)
[02/22] soc: ti: k3-navss-ringacc: fix COMPILE_TEST link error
        https://git.pengutronix.de/cgit/barebox/commit/?id=8644f442f72e (link may not be stable)
[03/22] treewide: fix missing headers in sandbox allyesconfig
        https://git.pengutronix.de/cgit/barebox/commit/?id=38a389121b87 (link may not be stable)
[04/22] drivers: don't cast pointer directly to enum
        https://git.pengutronix.de/cgit/barebox/commit/?id=31fb717b4e27 (link may not be stable)
[05/22] firmware: arm_scmi: smc: compile only for ARM
        https://git.pengutronix.de/cgit/barebox/commit/?id=faf4a5da3f86 (link may not be stable)
[06/22] video: stm32-ltdc: fix printing uninitialized variable
        https://git.pengutronix.de/cgit/barebox/commit/?id=9c0ff56016a2 (link may not be stable)
[07/22] usb: core: remove unnecessary comparison
        https://git.pengutronix.de/cgit/barebox/commit/?id=049e56755631 (link may not be stable)
[08/22] ddr_spd: fix always true sub-condition
        https://git.pengutronix.de/cgit/barebox/commit/?id=2ad7e02e24c9 (link may not be stable)
[09/22] hush: fix make_string behavior on empty strings
        https://git.pengutronix.de/cgit/barebox/commit/?id=c884ea565a51 (link may not be stable)
[10/22] nvmem: fix clang-analyzer false-positive use of uninitialized value
        https://git.pengutronix.de/cgit/barebox/commit/?id=2e02e583f7c7 (link may not be stable)
[11/22] string: initialize string array in string selftest
        https://git.pengutronix.de/cgit/barebox/commit/?id=c807c954e141 (link may not be stable)
[12/22] commands: ubsan: hide zero division in test
        https://git.pengutronix.de/cgit/barebox/commit/?id=cb7953532da2 (link may not be stable)
[13/22] crypto: ecc: fix clang-analyzer warning about NULL dereference
        https://git.pengutronix.de/cgit/barebox/commit/?id=c7a1df25a191 (link may not be stable)
[14/22] mci_spi: fix possible use of uninitialized variable
        https://git.pengutronix.de/cgit/barebox/commit/?id=8a8f51a2f8a4 (link may not be stable)
[15/22] mtd: have mtd_read populate retlen always
        https://git.pengutronix.de/cgit/barebox/commit/?id=9d7580eb87bc (link may not be stable)
[16/22] of: fdt: silence possible static analyzer false positive
        https://git.pengutronix.de/cgit/barebox/commit/?id=44377ec41732 (link may not be stable)
[17/22] ubi: workaround zero division on malformed input in ubi_assert
        https://git.pengutronix.de/cgit/barebox/commit/?id=9e52dd5668eb (link may not be stable)
[18/22] video: Rockchip: fix zero division in rk3588_calc_cru_cfg
        https://git.pengutronix.de/cgit/barebox/commit/?id=fdd1c5bac55f (link may not be stable)
[19/22] lib: scatterlist: don't assert last element for empty sglist
        https://git.pengutronix.de/cgit/barebox/commit/?id=5a7f10a4b865 (link may not be stable)
[20/22] scripts: omap3-usb-loader: fix clang-analyzer false-positive
        https://git.pengutronix.de/cgit/barebox/commit/?id=06e3e7f29b98 (link may not be stable)
[21/22] clk: analogbits: wrpll-cln28hpc: bail out before zero division
        https://git.pengutronix.de/cgit/barebox/commit/?id=66daf4f16210 (link may not be stable)
[22/22] watchdog: stm32_iwdg: bail out before zero division
        https://git.pengutronix.de/cgit/barebox/commit/?id=8a4768c4ed82 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list