All of lore.kernel.org
 help / color / mirror / Atom feed
* Are patches for warnings in drivers/staging/* worth?
@ 2009-06-05  6:04 Pranith Kumar
  2009-06-05 11:20 ` Stefan Richter
  2009-06-05 17:41 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Pranith Kumar @ 2009-06-05  6:04 UTC (permalink / raw)
  To: Greg KH, linux-kernel

Hi Greg,

I am looking at the various warnings which occur while compiling the 
staging drivers. Most of them are

* unused variables
* arg makes pointer from integer without cast
* un-initialized variable

What in these warnings should I send patches against? Are they worth the 
effort?

Thanks,
Pranith.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Are patches for warnings in drivers/staging/* worth?
  2009-06-05  6:04 Are patches for warnings in drivers/staging/* worth? Pranith Kumar
@ 2009-06-05 11:20 ` Stefan Richter
  2009-06-05 17:41 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Richter @ 2009-06-05 11:20 UTC (permalink / raw)
  To: Pranith Kumar; +Cc: Greg KH, linux-kernel

Pranith Kumar wrote:
> Hi Greg,
> 
> I am looking at the various warnings which occur while compiling the 
> staging drivers. Most of them are
> 
> * unused variables
> * arg makes pointer from integer without cast
> * un-initialized variable
> 
> What in these warnings should I send patches against?

I'm not Greg, but --- I'd say it's the same as with all other kernel code:

  - If somebody else already actively works on the code in question,
    coordinate your efforts with him.  (I suppose Greg as the maintainer
    will tell you if there is parallel effort and whether /he/ will
    merge your patches, or the other developer should pick them up, or
    whatever.)¹

  - The goal of such patches should not just be about making the
    warnings go away, they should be about improving the code:  Fix
    bugs, make it more readable, eventually optimize...  I for one agree
    with the people who say that "fixing" the warnings without
    addressing the /underlying/ problems or even just the /surrounding/
    problems is actually very counterproductive.  Warnings are good!²
    They tell us that there probably is a problem.  As long as the
    problem is there, the warning should stay there.

> Are they worth the effort?

Most certainly, because getting the drivers merge-ready is exactly the
main purpose of carrying them in the staging area.


¹) For coordination between those who work on the staging drivers, there
is also linuxdriverproject.org's devel mailinglist.

²) Well, warnings are /not/ good if they become overwhelming noise.  But
at least the staging drivers are out of the picture of normal kernel
configurations, therefore they normally don't add noise.
-- 
Stefan Richter
-=====-==--= -==- --=-=
http://arcgraph.de/sr/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Are patches for warnings in drivers/staging/* worth?
  2009-06-05  6:04 Are patches for warnings in drivers/staging/* worth? Pranith Kumar
  2009-06-05 11:20 ` Stefan Richter
@ 2009-06-05 17:41 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2009-06-05 17:41 UTC (permalink / raw)
  To: Pranith Kumar; +Cc: linux-kernel

On Fri, Jun 05, 2009 at 11:34:22AM +0530, Pranith Kumar wrote:
> Hi Greg,
> 
> I am looking at the various warnings which occur while compiling the 
> staging drivers. Most of them are
> 
> * unused variables
> * arg makes pointer from integer without cast
> * un-initialized variable
> 
> What in these warnings should I send patches against? Are they worth the 
> effort?

Sure they are worth the effort in cleaning up this kind of things.
Always generate patches for the staging tree against the latest
linux-next release.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-05 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-05  6:04 Are patches for warnings in drivers/staging/* worth? Pranith Kumar
2009-06-05 11:20 ` Stefan Richter
2009-06-05 17:41 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.