[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18467.37312.772564.163109@cargo.ozlabs.ibm.com>
Date: Fri, 9 May 2008 09:50:24 +1000
From: Paul Mackerras <paulus@...ba.org>
To: Greg KH <greg@...ah.com>
Cc: Cornelia Huck <cornelia.huck@...ibm.com>, benh@...nel.crashing.org,
Andrew Morton <akpm@...ux-foundation.org>,
David Miller <davem@...emloft.net>, tony@...eyournoodle.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Silence 'ignoring return value' warnings in
drivers/video/aty/radeon_base.c
Greg KH writes:
> > I hear you :) I found it useful, but it seems we should get rid of it
> > for _create_file() now.
>
> Why? You point out it found some real bugs, should we just assume that
> no new bugs of this same problem will happen again in the future?
Because it causes warnings for the callers which don't really care
whether the file gets created or not, and getting rid of those
warnings adds unnecessary bloat.
I think the best solution is to make a new sysfs_maybe_create_file()
which isn't marked must_check, and then move suitable callers (such as
radeonfb) over to that. That will make it obvious in the callers that
the file creation isn't guaranteed.
Paul.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists