Linux: Fix detection of register_sysctl_sz
commitf29dcc25c7a784bbb3d3e92942a0a180671a04ac
authorIvan Volosyuk <ivan.volosyuk@gmail.com>
Sat, 30 Nov 2024 03:50:37 +0000 (30 14:50 +1100)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 03:50:37 +0000 (29 22:50 -0500)
treef20955a8c0dabe9deb2c61d1c8572a4ea4020bb9
parent0ffa6f3464278993d30c6e98b53af4ced0ed9ab7
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

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Pavel Snajdr <snajpa@snajpa.net>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ivan Volosyuk <Ivan.Volosyuk@gmail.com>
Closes: #16620
Closes: #16805
config/kernel-register_sysctl_table.m4