Project

General

Profile

Actions

Bug #13087

closed

zfs: zfs_ereport_post() and zfs_ereport_start() return values are ignored

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

use (void) to silence analyzers.

Reviewed-by: Ryan Moeller <>
Reviewed-by: Brian Behlendorf <>
Signed-off-by: Toomas Soome <>
Closes #10857

smatch errors:

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zio.c:483 zio_decrypt() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zio.c:1988 zio_suspend() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zio.c:4259 zio_done() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zio.c:4273 zio_done() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zio.c:4284 zio_done() error: unchecked function return 'zfs_ereport_post'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev.c:1362 vdev_probe_done() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev.c:1714 vdev_open() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev.c:4388 vdev_set_state() error: unchecked function return 'zfs_ereport_post'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/zfs_fm.c:739 zfs_ereport_start_checksum() error: uncheckedfunction return 'zfs_ereport_start'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev_raidz.c:2078 raidz_checksum_error() error: unchecked function return 'zfs_ereport_post_checksum'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../common/fs/zfs/spa.c:2393 spa_load() error: unchecked function return 'zfs_ereport_post'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev_indirect.c:1386 vdev_indirect_checksum_error() error:unchecked function return 'zfs_ereport_post_checksum'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/vdev_indirect.c:1464 vdev_indirect_all_checksum_errors() error: unchecked function return 'zfs_ereport_post_checksum'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/arc.c:2541 arc_untransform() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/arc.c:5804 arc_read_done() error: unchecked function return 'zfs_ereport_post'
/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/arc.c:6062 arc_read() error: unchecked function return 'zfs_ereport_post'

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch:
 ../../common/fs/zfs/spa_config.c:284 spa_write_cachefile() error: unchecked function return 'zfs_ereport_post'

Testing done: build/install/boot with illumos; plus openzfs test VM's running zfs tests.

Actions

Also available in: Atom PDF