Skip to content

Commit de8bafc

Browse files
committed
Linux: Fix detection of register_sysctl_sz
Adjust the m4 function to mimic sentinel we use in spl-proc.c This fixes the detection on kernels compiled with CONFIG_RANDSTRUCT=y Closes: 16620 Signed-off-by: Ivan Volosyuk <[email protected]>
1 parent d2b0ca9 commit de8bafc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/kernel-register_sysctl_table.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_REGISTER_SYSCTL_SZ], [
3636
ZFS_LINUX_TEST_SRC([has_register_sysctl_sz], [
3737
#include <linux/sysctl.h>
3838
],[
39-
struct ctl_table test_table[] __attribute__((unused)) = {0};
39+
struct ctl_table test_table[] __attribute__((unused)) = {{}};
4040
register_sysctl_sz("", test_table, 0);
4141
])
4242
])

0 commit comments

Comments
 (0)