From e4bc62bd18fcb810e9d793a555d73ad9cda28cc0 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Thu, 11 Aug 2022 13:31:19 +0200 Subject: [PATCH] Add missing semicolons in configure scripts Since commit 51dc893fc1 every script must take care about adding a semicolon at the end of compilable line of code Signed-off-by: Michal Mielewczyk --- configure.d/1_append_bio.conf | 4 ++-- configure.d/1_bd_first_part.conf | 2 +- configure.d/1_bio_max_vecs.conf | 2 +- configure.d/1_biovec.conf | 4 ++-- configure.d/1_blk_status.conf | 4 ++-- configure.d/1_deamonize.conf | 4 ++-- configure.d/1_discard_zeros.conf | 4 ++-- configure.d/1_err_no_to_blk_sts.conf | 4 ++-- configure.d/1_kallsyms_on_each_symbol.conf | 4 ++-- configure.d/1_make_request.conf | 4 ++-- configure.d/1_mq_flags.conf | 6 +++--- configure.d/1_munmap.conf | 4 ++-- configure.d/1_queue_chunk_sectors.conf | 4 ++-- configure.d/1_queue_flag_set.conf | 4 ++-- configure.d/1_timekeeping.conf | 4 ++-- configure.d/1_wtlh.conf | 4 ++-- 16 files changed, 31 insertions(+), 31 deletions(-) diff --git a/configure.d/1_append_bio.conf b/configure.d/1_append_bio.conf index 6e43cda..5b27ae2 100644 --- a/configure.d/1_append_bio.conf +++ b/configure.d/1_append_bio.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -10,7 +10,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct bio *b;blk_rq_append_bio(NULL, &b)" "linux/blkdev.h" + if compile_module $cur_name "struct bio *b;blk_rq_append_bio(NULL, &b);" "linux/blkdev.h" then echo $cur_name 1 >> $config_file_path else diff --git a/configure.d/1_bd_first_part.conf b/configure.d/1_bd_first_part.conf index a9643ba..dde6ef5 100644 --- a/configure.d/1_bd_first_part.conf +++ b/configure.d/1_bd_first_part.conf @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct gendisk *disk = NULL; struct xarray xa; xa = disk->part_tbl" "linux/genhd.h" + if compile_module $cur_name "struct gendisk *disk = NULL; struct xarray xa; xa = disk->part_tbl;" "linux/genhd.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" diff --git a/configure.d/1_bio_max_vecs.conf b/configure.d/1_bio_max_vecs.conf index 17c74e0..59a0af7 100644 --- a/configure.d/1_bio_max_vecs.conf +++ b/configure.d/1_bio_max_vecs.conf @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "int n; n = BIO_MAX_VECS" "linux/bio.h" + if compile_module $cur_name "int n; n = BIO_MAX_VECS;" "linux/bio.h" then echo $cur_name 1 >> $config_file_path else diff --git a/configure.d/1_biovec.conf b/configure.d/1_biovec.conf index 63ab0f0..ab85e9a 100644 --- a/configure.d/1_biovec.conf +++ b/configure.d/1_biovec.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct bio b;&bio_iovec(&b)" "linux/bio.h" + if compile_module $cur_name "struct bio b;&bio_iovec(&b);" "linux/bio.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_blk_status.conf b/configure.d/1_blk_status.conf index f43071f..ffac2ae 100644 --- a/configure.d/1_blk_status.conf +++ b/configure.d/1_blk_status.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "blk_status_t t" "linux/blk_types.h" + if compile_module $cur_name "blk_status_t t;" "linux/blk_types.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_deamonize.conf b/configure.d/1_deamonize.conf index 5d1fa69..276cc13 100644 --- a/configure.d/1_deamonize.conf +++ b/configure.d/1_deamonize.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "deamonize(\"some_name\", NULL)" "linux/sched.h" + if compile_module $cur_name "deamonize(\"some_name\", NULL);" "linux/sched.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_discard_zeros.conf b/configure.d/1_discard_zeros.conf index 3f8b057..5f4e1b3 100644 --- a/configure.d/1_discard_zeros.conf +++ b/configure.d/1_discard_zeros.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct queue_limits q;q.discard_zeroes_data" "linux/blkdev.h" + if compile_module $cur_name "struct queue_limits q;q.discard_zeroes_data;" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_err_no_to_blk_sts.conf b/configure.d/1_err_no_to_blk_sts.conf index 6d4da0c..00d9f1d 100644 --- a/configure.d/1_err_no_to_blk_sts.conf +++ b/configure.d/1_err_no_to_blk_sts.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "errno_to_blk_status(0)" "linux/blkdev.h" + if compile_module $cur_name "errno_to_blk_status(0);" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_kallsyms_on_each_symbol.conf b/configure.d/1_kallsyms_on_each_symbol.conf index 7d57da1..81b51fb 100644 --- a/configure.d/1_kallsyms_on_each_symbol.conf +++ b/configure.d/1_kallsyms_on_each_symbol.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "kallsyms_on_each_symbol(NULL, NULL)" "linux/fs.h" + if compile_module $cur_name "kallsyms_on_each_symbol(NULL, NULL);" "linux/fs.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_make_request.conf b/configure.d/1_make_request.conf index f0e6222..b61bb43 100644 --- a/configure.d/1_make_request.conf +++ b/configure.d/1_make_request.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "blk_queue_make_request" "linux/blkdev.h" + if compile_module $cur_name "blk_queue_make_request;" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path elif compile_module $cur_name "struct request_queue *q; q->make_request_fn;" "linux/blkdev.h" diff --git a/configure.d/1_mq_flags.conf b/configure.d/1_mq_flags.conf index dcf1009..9b6e7db 100644 --- a/configure.d/1_mq_flags.conf +++ b/configure.d/1_mq_flags.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -12,12 +12,12 @@ check() { output=0 - if compile_module $cur_name "BLK_MQ_F_STACKING " "linux/blk-mq.h" + if compile_module $cur_name "BLK_MQ_F_STACKING ;" "linux/blk-mq.h" then output=1 fi - if compile_module $cur_name "BLK_MQ_F_BLOCKING " "linux/blk-mq.h" + if compile_module $cur_name "BLK_MQ_F_BLOCKING ;" "linux/blk-mq.h" then output=$((output+2)) fi diff --git a/configure.d/1_munmap.conf b/configure.d/1_munmap.conf index f61a5f3..6bfab08 100644 --- a/configure.d/1_munmap.conf +++ b/configure.d/1_munmap.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -12,7 +12,7 @@ check() { if compile_module $cur_name "vm_munmap(0, 0); MAP_PRIVATE;" "linux/mm.h" then echo $cur_name "1" >> $config_file_path - elif compile_module $cur_name "do_munmap(NULL, 0)" "linux/mm.h" + elif compile_module $cur_name "do_munmap(NULL, 0);" "linux/mm.h" then echo $cur_name "2" >> $config_file_path elif compile_module $cur_name "vm_munmap(0, 0); MAP_PRIVATE;" "linux/mm.h"\ diff --git a/configure.d/1_queue_chunk_sectors.conf b/configure.d/1_queue_chunk_sectors.conf index 6ded040..f6edc0e 100644 --- a/configure.d/1_queue_chunk_sectors.conf +++ b/configure.d/1_queue_chunk_sectors.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct request_queue q;q.limits.chunk_sectors" "linux/blkdev.h" + if compile_module $cur_name "struct request_queue q;q.limits.chunk_sectors;" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_queue_flag_set.conf b/configure.d/1_queue_flag_set.conf index 0ee5b43..a90c7ee 100644 --- a/configure.d/1_queue_flag_set.conf +++ b/configure.d/1_queue_flag_set.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "blk_queue_flag_set(0, NULL)" "linux/blkdev.h" + if compile_module $cur_name "blk_queue_flag_set(0, NULL);" "linux/blkdev.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_timekeeping.conf b/configure.d/1_timekeeping.conf index 6e40b35..5f68b41 100644 --- a/configure.d/1_timekeeping.conf +++ b/configure.d/1_timekeeping.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "ktime_get_real_ts64(NULL)" "linux/ktime.h" + if compile_module $cur_name "ktime_get_real_ts64(NULL);" "linux/ktime.h" then echo $cur_name "1" >> $config_file_path else diff --git a/configure.d/1_wtlh.conf b/configure.d/1_wtlh.conf index 7add931..c7d43c6 100644 --- a/configure.d/1_wtlh.conf +++ b/configure.d/1_wtlh.conf @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright(c) 2012-2021 Intel Corporation +# Copyright(c) 2012-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ check() { cur_name=$(basename $2) config_file_path=$1 - if compile_module $cur_name "struct bio b;b.bi_write_hint" "linux/bio.h" + if compile_module $cur_name "struct bio b;b.bi_write_hint;" "linux/bio.h" then echo $cur_name "1" >> $config_file_path else