[LTP] [PATCH] bugfix for block_dev_kernel/ltp_block_dev.c

Petr Vorel
2021-05-10T16:52:41Z

Hi,

> Add genhd.h and blkdev.h to ltp_block_dev.c.

> Failed at compile time on kernel 5.12 due to change of register_blkdev function definition from linux/fs.h to linux/genhd.h and failure of test case tc05,The reason is that the BLKDEV_MAJOR_MAX definition was changed from fs.h to blkdev.h

Good catch, merged with slightly changed commit message.
Thanks!

Maybe we should not ignore build error for kernel module to catch these API
changes earlier.

Kind regards,
Petr