[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2e3b106585cebbb579c0d5cca33737623765ded7.camel@sipsolutions.net>
Date: Thu, 24 Oct 2024 16:52:00 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Sabrina Dubroca <sd@...asysnail.net>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [RFC PATCH 2/2] net: convert to nla_get_*_default()
On Thu, 2024-10-24 at 16:48 +0200, Sabrina Dubroca wrote:
>
> If nla_get_*_default was a macro (generating an "attr ? getter :
> default" expression) you wouldn't have that problem I think,
Hmm. Perhaps. In the conditional operator (?:) they're subject to
integer promotion though, I wonder if that could cause some subtle issue
too especially if nla_get_u*() is used with signed variables?
> but you
> couldn't nicely generate all the helpers with MAKE_NLA_GET_DEFAULT
> anymore.
Right, that too.
I think it's probably better to just review them, and only commit the
obvious ones originally?
johannes
Powered by blists - more mailing lists