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:
parent
dfd63abcb9
commit
c04b0b6d67
@ -9,10 +9,10 @@
|
|||||||
check() {
|
check() {
|
||||||
cur_name=$(basename $2)
|
cur_name=$(basename $2)
|
||||||
config_file_path=$1
|
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
|
then
|
||||||
echo $cur_name "1" >> $config_file_path
|
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
|
then
|
||||||
echo $cur_name "2" >> $config_file_path
|
echo $cur_name "2" >> $config_file_path
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user