Project

General

Profile

Bug #13087

Updated by Toomas Soome almost 2 years ago

use (void) to silence analyzers. 

 Reviewed-by: Ryan Moeller <ryan@iXsystems.com> 
 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> 
 Signed-off-by: Toomas Soome <tsoome@me.com> 
 Closes #10857 

 smatch errors: 
 <pre> 
 /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' 
 </pre> 

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

Back