Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-07-2010, 08:50 AM   #1
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu / Fedora
Posts: 4

Rep: Reputation: 0
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.

Old 07-08-2010, 12:13 PM   #2
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu / Fedora
Posts: 4

Original Poster
Rep: Reputation: 0
In fact it was trivial but I am not the author of the driver so I have not seen some flags as -D xxxxx where used and it was the problem, sparse tried to parse these options.

So only have to add C=2 or C=1 to make.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy sparse files tincboy Linux - Newbie 14 07-07-2010 02:47 AM
Sparse matrix library Asuralm Programming 1 05-22-2008 11:52 AM
LXer: Sparse v0.4 Released LXer Syndicated Linux News 0 09-18-2007 09:41 AM -- why is it so sparse? arcanex Slackware 1 08-31-2007 07:52 PM
sparse array in java lado Programming 4 12-18-2004 05:48 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration