login
Header Space

 
 

Re: [rfc] the kernel workflow & trivial "global -> static" patches

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Ingo Molnar <mingo@...>, Peter Zijlstra <a.p.zijlstra@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, Sam Ravnborg <sam@...>, Alexander Viro <viro@...>, H. Peter Anvin <hpa@...>
Date: Tuesday, May 6, 2008 - 7:13 am

Adrian Bunk wrote:

At least for the scheduler patch that started this thread this was not
the case. One was a global variable and the other was a callback from
proc. Both cannot be inlined.


Yes it's good to catch those. However I suspect there are better tools
for that that do it less work intensive. Traditionally in the Unix
world "lint" has been used to track this kind of bugs (dating back from
before prototypes were added to C). Now running any lint over the kernel
source would result in a incredibly number of warnings I'm sure, but
perhaps one can be configured to only output warnings related to
inconsistent prototypes over files. There are a couple of free lints
like the one in NetBSD or splint.	


Sounds like the variable should just have been removed then in the source?

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] make sched_feat_{names,open} static, Adrian Bunk, (Mon May 5, 2:29 pm)
Re: [rfc] the kernel workflow & trivial "global -> st..., Andi Kleen, (Tue May 6, 7:13 am)
speck-geostationary