How to use sparse tool
I would like to use the sparse tool developed by Linus but I have some troubles to use it.
There is a lack of documentation and tutorial about this tool and maybe the man page is no up to date since it only speak about two options but into the code, we can see a switch on many options.
Do you know how to use it outside of the kernel tree ? Everything is good if I use make C=1 or C=2 to compile kernel source but I don't succeed to use it with my driver Makefile.
If I try to use sparse in standalone, I have a lot of errors to find include files even if using gcc-base-dir option and giving it the kernel headers.