jitterentropy-rngd: update to version v1.1.0 + clang compile fix
* avert crash during shutdown when the kernel sends a SIGALRM while the
Jitter RNG is deallocated
* Fix: unsafe signal handling by Gerald Lledo
* import jitterentropy library 2.2.0 to make rngd fully SP800-90B compliant
* include clang compile fix in order to use scan-build static checker
used in GitLab CI pipeline
Signed-off-by: Petr Štetiar <[email protected]>
Fix wrong types in format strings used in debug build
GCC 9.2.1 on x86/64 complains about following format string issues:
urngd.c:94:12: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
urngd.c:94:12: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
GCC 7.4.0 on i.mx6 complains about following format string issues:
urngd.c:55:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned int}' [-Werror=format=]
Ref: https://gitlab.com/ynezz/openwrt-urngd/-/jobs/
306404059
Ref: https://gitlab.com/ynezz/openwrt-urngd/-/jobs/
309187631
Signed-off-by: Petr Štetiar <[email protected]>
Add initial GitLab CI support
Uses currently proof-of-concept openwrt-ci[1] in order to:
* improve the quality of the codebase in various areas
* decrease code review time and help merging contributions faster
* get automagic feedback loop on various platforms and tools
- out of tree build with OpenWrt SDK on following targets:
* ath79-generic
* imx6-generic
* malta-be
* mvebu-cortexa53
- out of tree native build on x86/64 with GCC (versions 7, 8, 9) and Clang 9
- out of tree native x86/64 static code analysis with cppcheck and
scan-build from Clang 9
1. https://gitlab.com/ynezz/openwrt-ci/
Signed-off-by: Petr Štetiar <[email protected]>
Fix wrong type in format string
GCC 9.1 complains about this wrong type used in the format string, fix
this to make the compiler happy.
Signed-off-by: Hauke Mehrtens <[email protected]>
Init logging before actually using it
Otherwise we don't get urngd: prefixed log messages which might be
confusing:
procd: - watchdog -
jent-rng init failed, err: 2
procd: - watchdog -
While at it add missing newline in one error message.
Signed-off-by: Petr Štetiar <[email protected]>