diff --git a/configure.d/1_bdev_nr_sectors.conf b/configure.d/1_bdev_nr_sectors.conf index 342e85e..40cd4af 100644 --- a/configure.d/1_bdev_nr_sectors.conf +++ b/configure.d/1_bdev_nr_sectors.conf @@ -13,7 +13,7 @@ check() { if compile_module $cur_name "bdev_nr_sectors(NULL);" "linux/genhd.h" then echo $cur_name 1 >> $config_file_path - elif compile_module $cur_name "struct block_device *bd; bd->bd_part->nr_sects;" "linux/blk_types.h" + elif compile_module $cur_name "struct block_device *bd; bd->bd_part->nr_sects;" "linux/blk_types.h" "linux/genhd.h" then echo $cur_name 2 >> $config_file_path else diff --git a/configure.d/1_bdev_whole.conf b/configure.d/1_bdev_whole.conf index 10aba5f..1d7bb0c 100644 --- a/configure.d/1_bdev_whole.conf +++ b/configure.d/1_bdev_whole.conf @@ -13,7 +13,7 @@ check() { if compile_module $cur_name "struct block_device *bd; bdev_whole(bd);" "linux/blk_types.h" "linux/genhd.h" then echo $cur_name 1 >> $config_file_path - elif compile_module $cur_name "struct block_device *bd; bd->bd_contains;" "linux/blk_types.h" + elif compile_module $cur_name "struct block_device *bd; bd->bd_contains;" "linux/blk_types.h" "linux/fs.h" then echo $cur_name 2 >> $config_file_path else diff --git a/configure.d/conf_framework.sh b/configure.d/conf_framework.sh index 4b30b14..51fb8e6 100644 --- a/configure.d/conf_framework.sh +++ b/configure.d/conf_framework.sh @@ -21,6 +21,7 @@ add_function() { } __compile_module(){ + INCLUDE="" if [ $# -gt 1 ] then i=2