Use linux/blkdev.h header for lookup_bdev()

Upstream commit 3f1266f1f82d7 moved lookup_bdev() to linux/blkdev.h

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
This commit is contained in:
Anatol Pomozov 2020-10-29 15:58:22 -07:00
parent dfd63abcb9
commit c04b0b6d67

View File

@ -9,10 +9,10 @@
check() {
cur_name=$(basename $2)
config_file_path=$1
if compile_module $cur_name "lookup_bdev(\"some_path\")" "linux/fs.h"
if compile_module $cur_name "lookup_bdev(\"some_path\")" "linux/fs.h" "linux/blkdev.h"
then
echo $cur_name "1" >> $config_file_path
elif compile_module $cur_name "lookup_bdev(\"some_path\", 0)" "linux/fs.h"
elif compile_module $cur_name "lookup_bdev(\"some_path\", 0)" "linux/fs.h" "linux/blkdev.h"
then
echo $cur_name "2" >> $config_file_path
else