diff options
author | Damian Szuberski <[email protected]> | 2022-06-16 07:20:28 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-15 14:20:28 -0700 |
commit | 988431966639d791ac269011d136e85f3602df75 (patch) | |
tree | ee312d458f6eaef3434b090efcee4611748eafe3 /config | |
parent | 4ff7a8fa2f1e66c4a10ecd4fd74c9381db24fb02 (diff) |
Fix clang 13 compilation errors
```
os/linux/zfs/zvol_os.c:1111:3: error: ignoring return value of function
declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
add_disk(zv->zv_zso->zvo_disk);
^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
zpl_xattr.c:1579:1: warning: no previous prototype for function
'zpl_posix_acl_release_impl' [-Wmissing-prototypes]
```
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13551
Diffstat (limited to 'config')
-rw-r--r-- | config/kernel-add-disk.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/kernel-add-disk.m4 b/config/kernel-add-disk.m4 index 44a8a5fd2..86d81ea32 100644 --- a/config/kernel-add-disk.m4 +++ b/config/kernel-add-disk.m4 @@ -7,8 +7,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_ADD_DISK], [ #include <linux/blkdev.h> ], [ struct gendisk *disk = NULL; - int err = add_disk(disk); - err = err; + int error __attribute__ ((unused)) = add_disk(disk); ]) ]) |