10154 zfs: cast between incompatible function types

Review Request #1326 - Created Dec. 21, 2018 and submitted

Information
Toomas Soome
illumos-gate
10154
f115cc1...
Reviewers
general
../../common/fs/zfs/vdev_disk.c: In function 'vdev_disk_io_start':
../../common/fs/zfs/vdev_disk.c:795:17: error: cast between incompatible function types from 'void (*)(buf_t *)' {aka 'void (*)(struct buf *)'} to 'int (*)()' [-Werror=cast-function-type]
  bp->b_iodone = (int (*)())vdev_disk_io_intr;
                 ^
../../common/fs/zfs/vdev_file.c: In function 'vdev_file_io_start':
../../common/fs/zfs/vdev_file.c:244:17: error: cast between incompatible function types from 'void (*)(buf_t *)' {aka 'void (*)(struct buf *)'} to 'int (*)()' [-Werror=cast-function-type]
  bp->b_iodone = (int (*)())vdev_file_io_intr;
                 ^

cc1: all warnings being treated as errors

  
Robert Mustacchi
Norm Jacobs
Andrew Stormont
Gergő Mihály Doma
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...