From 7e7a93132df6f476cf169f2936fa6165205af810 Mon Sep 17 00:00:00 2001 From: Michael Lyulko Date: Thu, 27 Oct 2022 15:39:57 +0300 Subject: [PATCH] configure: add missing include Signed-off-by: Michal Mielewczyk --- configure.d/1_bd_first_part.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.d/1_bd_first_part.conf b/configure.d/1_bd_first_part.conf index 42178898c..ea70d937a 100644 --- a/configure.d/1_bd_first_part.conf +++ b/configure.d/1_bd_first_part.conf @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright(c) 2012-2022 Intel Corporation +# Copyright(c) 2024 Huawei Technologies # SPDX-License-Identifier: BSD-3-Clause # @@ -13,7 +14,7 @@ check() { compile_module $cur_name "struct gendisk *disk = NULL; struct xarray xa; xa = disk->part_tbl;" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path - elif compile_module $cur_name "struct block_device bd; bd = *disk_part_iter_next(NULL);" "linux/blk_types.h" + elif compile_module $cur_name "struct block_device bd; bd = *disk_part_iter_next(NULL);" "linux/blk_types.h" "linux/genhd.h" then echo $cur_name "2" >> $config_file_path elif compile_module $cur_name "struct hd_struct hd; hd = *disk_part_iter_next(NULL);" "linux/genhd.h"