mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
9884319666
``` 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 <behlendorf1@llnl.gov> Signed-off-by: szubersk <szuberskidamian@gmail.com> Closes #13551
25 lines
536 B
Plaintext
25 lines
536 B
Plaintext
dnl #
|
|
dnl # 5.16 API change
|
|
dnl # add_disk grew a must-check return code
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_ADD_DISK], [
|
|
ZFS_LINUX_TEST_SRC([add_disk_ret], [
|
|
#include <linux/blkdev.h>
|
|
], [
|
|
struct gendisk *disk = NULL;
|
|
int error __attribute__ ((unused)) = add_disk(disk);
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_ADD_DISK], [
|
|
AC_MSG_CHECKING([whether add_disk() returns int])
|
|
ZFS_LINUX_TEST_RESULT([add_disk_ret],
|
|
[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_ADD_DISK_RET, 1,
|
|
[add_disk() returns int])
|
|
], [
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|