LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

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

Rep: Reputation: 0
How to use sparse tool


Hello,

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.


Thanks.
 
Old 07-08-2010, 11:13 AM   #2
Odulo
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.
 
  


Reply


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 01:47 AM
Sparse matrix library Asuralm Programming 1 05-22-2008 10:52 AM
LXer: Sparse v0.4 Released LXer Syndicated Linux News 0 09-18-2007 08:41 AM
slackwiki.org -- why is it so sparse? arcanex Slackware 1 08-31-2007 06:52 PM
sparse array in java lado Programming 4 12-18-2004 04:48 AM


All times are GMT -5. The time now is 03:54 PM.

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