[lkml]   [2017]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: sparse on scripts/kconfig/*.c
I have created some new tools to make this process easier.

1) First you still have to edit the Makefile:

-HOSTCC = gcc
+HOSTCC = ~/progs/smatch/devel/cgcc

2) Build the data with this command:

~/progs/smatch/devel/smatch_scripts/ --target scripts/

The --target scripts/ is because we want to run smatch on the scripts/

3) Run smatch:

~/progs/smatch/devel/smatch_scripts/ --target scripts/

I just wrote this code today so it might be a bit rough perhaps. Let me
know if you have any issues. It doesn't find anything like I said
before, but hopefully this can help other people who want to run Smatch
on user space code.

dan carpenter

 \ /
  Last update: 2017-05-10 22:55    [W:0.083 / U:10.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site