]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: fix duplicate array initializer
authorArnd Bergmann <arnd@arndb.de>
Wed, 6 Apr 2022 19:07:09 +0000 (21:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:47 +0000 (10:22 +0200)
commitdbf1243536269fa8f620685289ef6cd39000fe12
tree9ce165b74354970ed83ea664d8c092a553279c11
parent14c9932542e70ecb29a6325c672ee51bbaa88569
drbd: fix duplicate array initializer

[ Upstream commit 9714f9b7b7ef736fd624672fa80273299ecb85d0 ]

There are two initializers for P_RETRY_WRITE:

drivers/block/drbd/drbd_main.c:3676:22: warning: initialized field overwritten [-Woverride-init]

Remove the first one since it was already ignored by the compiler
and reorder the list to match the enum definition. As P_ZEROES had
no entry, add that one instead.

Fixes: 15ba9a49633f ("drbd: Receiving part for the PROTOCOL_UPDATE packet")
Fixes: dfeab60a8e29 ("drbd: introduce P_ZEROES (REQ_OP_WRITE_ZEROES on the "wire")")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220406190715.1938174-2-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/drbd/drbd_main.c