foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

"sparse" tool warnings to look at #59

Open abrodkin opened 2 years ago

abrodkin commented 2 years ago

Inspired by https://www.spinics.net/lists/linux-mm/msg268313.html

Linux semantic checker sparce (see more info on how it works - https://lwn.net/Articles/689907/) could be easily used during the Linux kernel build. Just either install it with your Linux distro package manager or build it from sources (https://git.kernel.org/pub/scm/devel/sparse/sparse.git) and make sure it's in your PATH variable. Then: make C=1 CF='-fdiagnostic-prefix'.

See attached a full log: sparse.log. Note, there're many warnings for different parts of the source tree, but for us the most interesting might be those in arch/arc.