]> asedeno.scripts.mit.edu Git - linux.git/commit
block: Fix elevator name declaration
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 10 Jul 2019 15:57:41 +0000 (00:57 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jul 2019 20:18:01 +0000 (14:18 -0600)
commit9305d5d721f2bd5e2eeb670035159b560ca211ca
tree3a407ca84377590759f0f17392f6a1fb12abe9de
parent36847a005489cfb74dc6388952da73346f867dca
block: Fix elevator name declaration

The elevator_name field in struct elevator_type is declared as an array
of characters (ELV_NAME_MAX size) but in practice used as a string
pointer with its initialization done statically within each
elevator elevator_type structure declaration.

Change the declaration of elevator_name to the more appropriate
"const char *" type.

Acked-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/elevator.h