login
Header Space

 
 

Re: [git patches] two warning fixes

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: Andrew Morton <akpm@...>, LKML <linux-kernel@...>, <ak@...>, <adaplas@...>, <linux-fbdev-devel@...>, <benh@...>
Date: Wednesday, July 18, 2007 - 9:37 pm

On Wed, 18 Jul 2007, Jeff Garzik wrote:

Quite frankly, I think a *lot* better fix for warnings would be to remove 
those damn broken "must_check" things on functions that don't at all need 
checking!

I'm pretty fed up with random "must_check" and "deprecated". They have 
never *ever* helped anybody, afaik. There are some very few functions that 
really do need to have their error returns checked (because not checking 
it is a security issue), but people seem to think "must_check" is a good 
approximation of "I think most of the time it makes sense to check".

So let's make a new rule:

  We absolutely NEVER add things like "must_check" unless not checking 
  causes a real and obvious SECURITY ISSUE.

  And we absolutely *never* add crap like "deprecated", where the only 
  point of the warning is to effectively hide *real* problems.

So realistically, the only thing that needs must_check is pretty much 
things like "get_user()" and quite frankly, I'm not sure even about that 
one.

Ok?

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

Messages in current thread:
[git patches] two warning fixes, Jeff Garzik, (Wed Jul 18, 7:55 pm)
Re: [git patches] two warning fixes, Linus Torvalds, (Wed Jul 18, 9:37 pm)
Re: [git patches] two warning fixes, Krzysztof Halasa, (Thu Jul 19, 9:38 am)
Re: [git patches] two warning fixes, Linus Torvalds, (Thu Jul 19, 2:00 pm)
Re: [git patches] two warning fixes, Tim Tassonis, (Fri Jul 20, 8:54 am)
Re: [git patches] two warning fixes, Jeff Garzik, (Wed Jul 18, 10:32 pm)
Re: [git patches] two warning fixes, Krzysztof Halasa, (Thu Jul 19, 9:40 am)
Re: [git patches] two warning fixes, Linus Torvalds, (Thu Jul 19, 2:04 pm)
Re: [git patches] two warning fixes, Kyle Moffett, (Sun Jul 22, 11:26 pm)
Re: [git patches] two warning fixes, Krzysztof Halasa, (Fri Jul 20, 2:34 pm)
Re: [git patches] two warning fixes, Benjamin Herrenschmidt, (Fri Jul 20, 8:32 pm)
Re: [git patches] two warning fixes, Jeff Garzik, (Sun Jul 22, 12:03 am)
Re: [git patches] two warning fixes, Benjamin Herrenschmidt, (Sun Jul 22, 5:29 pm)
Re: [git patches] two warning fixes, Andi Kleen, (Wed Jul 18, 7:59 pm)
Re: [git patches] two warning fixes, Jeff Garzik, (Wed Jul 18, 8:05 pm)
Re: [git patches] two warning fixes, Benjamin Herrenschmidt, (Wed Jul 18, 9:19 pm)
Re: [git patches] two warning fixes, Andrew Morton, (Wed Jul 18, 9:41 pm)
Re: [git patches] two warning fixes, Linus Torvalds, (Wed Jul 18, 9:50 pm)
Re: [git patches] two warning fixes, Benjamin Herrenschmidt, (Wed Jul 18, 10:05 pm)
speck-geostationary