Skip to content

Commit

Permalink
Emphasize fmode_t arg in zvol_release is not used
Browse files Browse the repository at this point in the history
Signed-off-by: Coleman Kane <[email protected]>
  • Loading branch information
ckane committed Jul 30, 2023
1 parent a9b203b commit 9e920ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/os/linux/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,12 @@ zvol_open(struct block_device *bdev, fmode_t flag)
static void
#ifdef HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID_1ARG
zvol_release(struct gendisk *disk)
{
#else
zvol_release(struct gendisk *disk, fmode_t mode)
#endif
zvol_release(struct gendisk *disk, fmode_t unused)
{
(void) unused;
#endif
zvol_state_t *zv;
boolean_t drop_suspend = B_TRUE;

Expand Down

0 comments on commit 9e920ec

Please sign in to comment.