From c04b0b6d670c23fda468282545ee8881b8d85a43 Mon Sep 17 00:00:00 2001 From: Anatol Pomozov Date: Thu, 29 Oct 2020 15:58:22 -0700 Subject: [PATCH] Use linux/blkdev.h header for lookup_bdev() Upstream commit 3f1266f1f82d7 moved lookup_bdev() to linux/blkdev.h Signed-off-by: Anatol Pomozov --- configure.d/1_bdev_lookup.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.d/1_bdev_lookup.conf b/configure.d/1_bdev_lookup.conf index ec4ff27..9d25b92 100644 --- a/configure.d/1_bdev_lookup.conf +++ b/configure.d/1_bdev_lookup.conf @@ -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