configure: adapt to kernel 5.11
The disk_part_iter_next function is declated in linux/genhd.h header file. Signed-off-by: Gal Hammer <gal.hammer@huawei.com> Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
This commit is contained in:
parent
b0a3c9cd45
commit
2162e945c2
@ -9,7 +9,7 @@
|
||||
check() {
|
||||
cur_name=$(basename $2)
|
||||
config_file_path=$1
|
||||
if compile_module $cur_name "struct block_device *bd; bd = disk_part_iter_next(NULL);" "linux/blk_types.h"
|
||||
if compile_module $cur_name "struct block_device *bd; bd = disk_part_iter_next(NULL);" "linux/blk_types.h" "linux/genhd.h"
|
||||
then
|
||||
echo $cur_name "1" >> $config_file_path
|
||||
elif compile_module $cur_name "struct hd_struct *hd; hd = disk_part_iter_next(NULL);" "linux/genhd.h"
|
||||
|
Loading…
Reference in New Issue
Block a user