Re: [PATCH] drbd: remove unused drbd_nl_mcgrps[] array
From: Christoph Böhmwalder
Date: Tue May 19 2026 - 16:52:06 EST
On 5/19/26 22:30, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@xxxxxxxx>
After the rework, two files have a copy of drbd_nl_mcgrps[], but one
of them has no references:
drivers/block/drbd/drbd_nl_gen.c:641:42: error: 'drbd_nl_mcgrps' defined but not used [-Werror=unused-const-variable=]
641 | static const struct genl_multicast_group drbd_nl_mcgrps[] = {
| ^~~~~~~~~~~~~~
At the default warning level, -Wunused-const-variables is turned off,
so this has gone unnoticed.
Remove the extra variable.
Fixes: 8098eeb693c4 ("drbd: replace genl_magic with explicit netlink serialization")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Oops, looks like a copy/paste error on my side.
Thanks for noticing and fixing.
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder@xxxxxxxxxx>