kernel_optimize_test/drivers/block/drbd
Arnd Bergmann bea6985099 drbd: fix duplicate array initializer
[ Upstream commit 33cb0917bbe241dd17a2b87ead63514c1b7e5615 ]

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: 036b17eaab ("drbd: Receiving part for the PROTOCOL_UPDATE packet")
Fixes: f31e583aa2 ("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>
2022-06-09 10:21:01 +02:00
..
drbd_actlog.c
drbd_bitmap.c
drbd_debugfs.c
drbd_debugfs.h
drbd_int.h
drbd_interval.c
drbd_interval.h
drbd_main.c drbd: fix duplicate array initializer 2022-06-09 10:21:01 +02:00
drbd_nl.c block: drbd: drbd_nl: Make conversion to 'enum drbd_ret_code' explicit 2022-05-15 20:00:08 +02:00
drbd_nla.c
drbd_nla.h
drbd_proc.c
drbd_protocol.h
drbd_receiver.c
drbd_req.c
drbd_req.h
drbd_state_change.h
drbd_state.c
drbd_state.h
drbd_strings.c
drbd_strings.h
drbd_vli.h
drbd_worker.c
Kconfig
Makefile