From cd560c447407cdd73bf94170125351b204567d48 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 1 Mar 2023 14:40:45 -0800 Subject: [PATCH] Accommodate debug-kernel stack frame size The blk_queue_discard() and blk_queue_sector_erase() functions slightly exceed the allowed 4096 maximum stack frame size when building with the RedHat debug kernel which causes their configure checks to fail. Add an exception for these two tests so the interfaces are correctly detected. Reviewed-by: Tino Reichardt Reviewed-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #14540 --- config/kernel-blk-queue.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/kernel-blk-queue.m4 b/config/kernel-blk-queue.m4 index 29b0a2829..bb5903b31 100644 --- a/config/kernel-blk-queue.m4 +++ b/config/kernel-blk-queue.m4 @@ -109,7 +109,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BLK_QUEUE_DISCARD], [ int value __attribute__ ((unused)); memset(q, 0, sizeof(r)); value = blk_queue_discard(q); - ]) + ],[-Wframe-larger-than=8192]) ]) AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_DISCARD], [ @@ -155,7 +155,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BLK_QUEUE_SECURE_ERASE], [ int value __attribute__ ((unused)); memset(q, 0, sizeof(r)); value = blk_queue_secure_erase(q); - ]) + ],[-Wframe-larger-than=8192]) ZFS_LINUX_TEST_SRC([blk_queue_secdiscard], [ #include