[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201302121718.48244.arnd@arndb.de>
Date: Tue, 12 Feb 2013 17:18:48 +0000
From: Arnd Bergmann <arnd@...db.de>
To: Paul Mundt <lethal@...ux-sh.org>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Stephen Warren <swarren@...dotorg.org>,
Grant Likely <grant.likely@...retlab.ca>,
Alexandre Courbot <acourbot@...dia.com>,
"linux-arch" <linux-arch@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Alexandre Courbot <gnurou@...il.com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Mike Turquette <mturquette@...aro.org>
Subject: Re: [PATCH 6/9] gpiolib: use descriptors internally
On Tuesday 12 February 2013, Paul Mundt wrote:
> > While I do get the point... I chatted with Grant about it and
> > I want to talk to some toolchain people about this to see if
> > pointers containing potential error codes can somehow be
> > "flagged" by the compiler so we can enforce error checking on
> > them. (It may sound a bit utopic...)
> >
> At the very least you can __must_check annotate, although that's probably
> still a bit coarser grained than what you're after.
There is an idea: we could have variants of __must_check for different
classes of returns: NULL error, ERR_PTR, negative integer on error, ...
Arnd
--
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