mirror_zfs/tests/zfs-tests/cmd
Brian Behlendorf 460748d4ae
Switch from _Noreturn to __attribute__((noreturn))
Parts of the Linux kernel build system struggle with _Noreturn.  This
results in the following warnings when building on RHEL 8.5, and likely
other environments.  Switch to using the __attribute__((noreturn)).

  warning: objtool: dbuf_free_range()+0x2b8:
    return with modified stack frame
  warning: objtool: dbuf_free_range()+0x0:
    stack state mismatch: cfa1=7+40 cfa2=7+8
  ...
  WARNING: EXPORT symbol "arc_buf_size" [zfs.ko] version generation
    failed, symbol will not be versioned.
  WARNING: EXPORT symbol "spa_open" [zfs.ko] version generation
    failed, symbol will not be versioned.
  ...

Additionally, __thread_exit() has been renamed spl_thread_exit() and
made a static inline function.  This was needed because the kernel
will generate a warning for symbols which are __attribute__((noreturn))
and then exported with EXPORT_SYMBOL.

While we could continue to use _Noreturn in user space I've also
switched it to __attribute__((noreturn)) purely for consistency
throughout the code base.

Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13238
2022-03-23 08:51:00 -07:00
..
badsend Drop references when skipping dmu_send due to EXDEV 2020-09-30 13:19:49 -07:00
btree_test tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
chg_usr_exec Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
devname2devid ZTS: Fix devname2devid build on FreeBSD with libudev 2020-07-22 10:49:22 -07:00
dir_rd_update Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
draid Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
file_check tests/file_check: remove unused variable 2021-06-07 20:59:01 -07:00
file_trunc Enable remaining tests 2017-05-22 12:34:32 -04:00
file_write Fix various typos 2021-04-02 18:52:15 -07:00
get_diff Add missing .gitignore from "Implement Redacted Send/Receive" 2019-06-23 11:51:29 -07:00
getversion Linux: Implement FS_IOC_GETVERSION 2021-12-17 16:18:37 -08:00
largest_file tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
libzfs_input_check Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
mkbusy Switch from _Noreturn to __attribute__((noreturn)) 2022-03-23 08:51:00 -07:00
mkfile Switch from _Noreturn to __attribute__((noreturn)) 2022-03-23 08:51:00 -07:00
mkfiles Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
mktree Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
mmap_exec Enable remaining tests 2017-05-22 12:34:32 -04:00
mmap_libaio tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
mmap_seek zfs-test/mmap_seek: fix build on musl 2021-12-21 16:44:18 -08:00
mmapwrite Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
nvlist_to_lua Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
randfree_file Fix coverity defects: CID 147692, 147693, 147694 2016-10-13 14:38:59 -07:00
randwritecomp Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
read_dos_attributes Expose additional file level attributes 2022-03-07 17:52:03 -08:00
readmmap Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
rename_dir Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
rm_lnkcnt_zero_file Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
send_doall send_iterate_snap : doall send without fromsnap 2021-02-24 09:48:58 -08:00
stride_dd Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
threadsappend Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
user_ns_exec Take user namespaces into account in policy checks 2018-03-07 15:40:42 -08:00
write_dos_attributes Expose additional file level attributes 2022-03-07 17:52:03 -08:00
xattrtest tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
file_common.h Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
Makefile.am Expose additional file level attributes 2022-03-07 17:52:03 -08:00