From d6fa4c6d531a58ba8c509e48862cb56f8d34f534 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Fri, 18 Jun 2021 13:19:56 +0200 Subject: [PATCH] configure: Fix condition for bd_first_part Signed-off-by: Robert Baldyga --- configure.d/1_bd_first_part.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.d/1_bd_first_part.conf b/configure.d/1_bd_first_part.conf index d88f069..afb88e9 100644 --- a/configure.d/1_bd_first_part.conf +++ b/configure.d/1_bd_first_part.conf @@ -9,10 +9,10 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct block_device *bd; bd->bd_partno;" "linux/blk_types.h" + if compile_module $cur_name "struct block_device *bd; bd = disk_part_iter_next(NULL);" "linux/blk_types.h" then echo $cur_name "1" >> $config_file_path - elif compile_module $cur_name "struct hd_struct *hd; hd->partno;" "linux/genhd.h" + elif compile_module $cur_name "struct hd_struct *hd; hd = disk_part_iter_next(NULL);" "linux/genhd.h" then echo $cur_name "2" >> $config_file_path else