diff options
author | Damian Szuberski <[email protected]> | 2022-04-21 18:37:11 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-04-21 09:37:11 -0700 |
commit | 2f31b585e77780b887c3cbf01c0b5498c42fe302 (patch) | |
tree | 52bcf72493e21f8b044578d82a0be0ce719ecf68 /config/kernel-group-info.m4 | |
parent | 47a02e39721bd226646dbdfe3063563a4a5e9749 (diff) |
Strengthen Linux kernel capabilities detection
- Add `CONFIG_BLOCK` Linux config requirement to
`ZFS_AC_KERNEL_CONFIG_DEFINED`. OpenZFS won't compile without
that block device support due to large amount of functional
dependencies on it.
- Remove dependency on `groups_alloc()` in
`ZFS_AC_KERNEL_SRC_GROUP_INFO_GID` to circumvent the missing stub
in Linux 4.X kernel headers.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13351
Diffstat (limited to 'config/kernel-group-info.m4')
-rw-r--r-- | config/kernel-group-info.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/kernel-group-info.m4 b/config/kernel-group-info.m4 index 0fee1d36d..6941d62da 100644 --- a/config/kernel-group-info.m4 +++ b/config/kernel-group-info.m4 @@ -6,8 +6,8 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_GROUP_INFO_GID], [ ZFS_LINUX_TEST_SRC([group_info_gid], [ #include <linux/cred.h> ],[ - struct group_info *gi = groups_alloc(1); - gi->gid[0] = KGIDT_INIT(0); + struct group_info gi __attribute__ ((unused)) = {}; + gi.gid[0] = KGIDT_INIT(0); ]) ]) |