[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3e5106a3-b7f5-e4f0-1bd1-d4af09b8c641@samsung.com>
Date: Thu, 25 Jun 2020 12:19:46 +0200
From: Andrzej Hajda <a.hajda@...sung.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Jernej Skrabec <jernej.skrabec@...l.net>,
Jonas Karlman <jonas@...boo.se>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"open list:DRM DRIVERS" <dri-devel@...ts.freedesktop.org>,
Russell King - ARM Linux <linux@...linux.org.uk>,
Neil Armstrong <narmstrong@...libre.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Mark Brown <broonie@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Robin Murphy <robin.murphy@....com>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Marek Szyprowski <m.szyprowski@...sung.com>
Subject: Re: [RESEND PATCH v5 3/5] drivers core: allow probe_err accept
integer and pointer types
On 25.06.2020 10:41, Andy Shevchenko wrote:
> On Wed, Jun 24, 2020 at 10:40 PM Andrzej Hajda <a.hajda@...sung.com> wrote:
>> On 24.06.2020 17:16, Robin Murphy wrote:
> ...
>
>> I have proposed such thing in my previous iteration[1], except it was
>> macro because of variadic arguments.
> You may have a function with variadic arguments. Macros are beasts and
> make in some cases more harm than help.
What harm it can do in this particular case?
With macro we have simple straightforward one-liner, with quite good
type-checking.
Maybe I am wrong, but I suspect creation of variadic function would
require much more coding.
Regards
Andrzej
Powered by blists - more mailing lists