Skip to content

CI: add support for Coccinelle #454

@plbossart

Description

@plbossart

Coccinelle is an extremely useful tool to detect conceptual errors or bad programming.
In 30mn it found one memory leak issue and one useless function, see #453

let's add it to the CI (both Travis and Intel). Coccinelle version 1.0.7 is needed and may need to be build from code. It's easy to create a new Debian package

apt-get build-dep coccinelle
git clone https://github.com/coccinelle/coccinelle.git
cd coccinelle
git checkout 1.0.7
./autogen.sh
./configure
make -j4
make install (or create .deb)

https://bottest.wiki.kernel.org/coccicheck

for CI, let's use this command line
make coccicheck MODE=report M=sound/soc/sof

Same as for Sparse, we only need to check SOF, not solve world hunger.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions