lkml.org 
[lkml]   [2017]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: sparse on scripts/kconfig/*.c
From
Date
On 05/10/17 13:53, Dan Carpenter wrote:
> 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/build_generic_data.sh --target scripts/
>
> The --target scripts/ is because we want to run smatch on the scripts/
> directory.
>
> 3) Run smatch:
>
> ~/progs/smatch/devel/smatch_scripts/test_generic.sh --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.

Thanks, Dan.

I get this when running build_generic_data.sh:

readline() on closed filehandle FILE at /home/rdunlap/projects/smatch/smatch_scripts/../smatch_data/db/fill_db_caller_info.pl line 33.

I see scripts/mod/* being built/checked ... but not scripts/kconfig/*.

Any ideas?


--
~Randy

\
 
 \ /
  Last update: 2017-05-15 20:01    [W:1.893 / U:1.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site