Re: [PATCH net-next v3 00/11] devlink: retain error in struct devlink_fmsg

From: Przemek Kitszel
Date: Thu Oct 19 2023 - 17:50:41 EST


On 10/19/23 15:44, Jiri Pirko wrote:
Wed, Oct 18, 2023 at 10:26:36PM CEST, przemyslaw.kitszel@xxxxxxxxx wrote:
Extend devlink fmsg to retain error (patch 1),
so drivers could omit error checks after devlink_fmsg_*() (patches 2-10),
and finally enforce future uses to follow this practice by change to
return void (patch 11)

Note that it was compile tested only.

bloat-o-meter for whole series:
add/remove: 8/18 grow/shrink: 23/40 up/down: 2017/-5833 (-3816)

changelog:
v3: set err to correct value, thanks to Simon and smatch
(mlx5 patch, final patch);

2 nits:
- always better to have per-patch changelog so it is clear for the
reviewers what exactly did you change and where.

agree that adding changelog also to patches would be better

- if you do any change in a patch, you should drop the
acked/reviewed/signedoff tags and get them again from people.

Here opinions differ widely, and my understanding was "it depends".
Noted to always drop yours.

On one side you have just rebased patches (different context of review),
then with trivial conflict fixed, then with minor change (as here,
0-init to retval, those are things that I believe most reviewers don't
want to look again at.
Then patches with some improvement that somebody suggested (as reviewer,
I want to see what could have been done better and I didn't notice).

In the above cases there is both time to react and no much harm keeping
RB. Things I think that most reviewers and maintainers would like to
drop RB start at "significant changes such as 'business' logic change",
which is of course a fuzzy line.

Always dropping is an easy solution, perhaps too easy ;)


that being said:
set-
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>


Thank you!