Re: [PATCH ethtool 5/7] settings: simplify link_mode_info[] initializers

2020-08-10 Thread Andrew Lunn
On Sun, Aug 09, 2020 at 11:24:32PM +0200, Michal Kubecek wrote: > Use macro helpers to make link_mode_info[] initializers easier to read and > less prone to mistakes. As a bonus, this gets rid of "missing field > initializer" warnings in netlink/settings.c > > This commit should have no effect on

[PATCH ethtool 5/7] settings: simplify link_mode_info[] initializers

2020-08-09 Thread Michal Kubecek
Use macro helpers to make link_mode_info[] initializers easier to read and less prone to mistakes. As a bonus, this gets rid of "missing field initializer" warnings in netlink/settings.c This commit should have no effect on resulting code (checked with gcc-11 and -O2). Signed-off-by: Michal Kubec