diff --git a/configure.d/1_bio_dev.conf b/configure.d/1_bio_dev.conf index 60cdb33..a471334 100644 --- a/configure.d/1_bio_dev.conf +++ b/configure.d/1_bio_dev.conf @@ -11,8 +11,8 @@ check() { config_file_path=$1 if compile_module $cur_name "struct bio b = {}; bio_dev(&b); b.bi_bdev = NULL;" "linux/bio.h" "linux/genhd.h" then - echo $cur_name "1" >> $config_file_path - elif compile_module $cur_name "struct bio b = {}; bio_dev(&b); b.bi_disk = NULL;" "linux/bio.h" + echo $cur_name "1" >> $config_file_path + elif compile_module $cur_name "struct bio b = {}; bio_dev(&b); b.bi_disk = NULL;" "linux/bio.h" "linux/genhd.h" then echo $cur_name "2" >> $config_file_path elif compile_module $cur_name "struct bio b; b.bi_bdev = NULL;" "linux/bio.h"