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

Petr Vorel pvorel@suse.cz
Mon May 10 18:52:41 CEST 2021


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


More information about the ltp mailing list