HardenedBSD/sys
Dimitry Andric b8c3dd46bb Fix gcc unused value warnings in FreeBSD zfs_prop.c
With gcc we are seeing the following -Werror warnings:

  /workspace/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd.h:53:33: error: statement with no effect [-Werror=unused-value]
     53 | #define simd_stat_init()        0
        |                                 ^
  /workspace/src/sys/contrib/openzfs/module/zcommon/zfs_prop.c:1092:9: note: in expansion of macro 'simd_stat_init'
   1092 |         simd_stat_init();
        |         ^~~~~~~~~~~~~~
  /workspace/src/sys/contrib/openzfs/module/zcommon/zfs_prop.c: In function 'zcommon_fini':
  /workspace/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd.h:54:33: error: statement with no effect [-Werror=unused-value]
     54 | #define simd_stat_fini()        0
        |                                 ^
  /workspace/src/sys/contrib/openzfs/module/zcommon/zfs_prop.c:1100:9: note: in expansion of macro 'simd_stat_fini'
   1100 |         simd_stat_fini();
        |         ^~~~~~~~~~~~~~

Both `simd_stat_init()` and `simd_stat_fini()` are defined in the
FreeBSD specific version of `simd.h`:

  #define	simd_stat_init()	0
  #define	simd_stat_fini()	0

These should both be defined as `do {} while (0)` instead, similar to
other macros in this file.

Reviewed by:	mav, tsoome (upstream)
Obtained from:	https://github.com/openzfs/zfs/pull/16693
MFC after:	3 days
Differential Revision:	<https://reviews.freebsd.org/D47297>
2024-10-28 18:34:58 +01:00
..
amd64
arm Revert "intrng: change multi-interrupt root support type to enum" 2024-10-25 16:18:40 -05:00
arm64 Revert "intrng: change multi-interrupt root support type to enum" 2024-10-25 16:18:40 -05:00
bsm
cam
cddl
compat LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89 2024-10-28 12:16:06 +00:00
conf arm64: Implement efi_rt_arch_call 2024-10-24 11:20:48 +01:00
contrib Fix gcc unused value warnings in FreeBSD zfs_prop.c 2024-10-28 18:34:58 +01:00
crypto
ddb
dev if_ffec: fix MAC address bootverbose print 2024-10-27 20:27:18 -07:00
dts
fs nfs: trivial typo fix 2024-10-26 09:50:22 -04:00
gdb
geom
gnu
i386
isa
kern subr_pctrie: improve iter nbr search 2024-10-25 17:00:31 -05:00
kgssapi
libkern
modules iwlwifi,rtw88,rtw89: connect to build again 2024-10-28 14:42:37 +00:00
net if_tuntap: Enable MEXTPG support 2024-10-28 15:14:36 +00:00
net80211
netgraph
netinet sctp: another cleanup 2024-10-27 15:01:45 +01:00
netinet6
netipsec
netlink
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc
riscv Revert "intrng: change multi-interrupt root support type to enum" 2024-10-25 16:18:40 -05:00
rpc
security
sys linker: Make linker.h more self-contained 2024-10-26 14:05:56 +00:00
teken
tests
tools
ufs
vm vm: Eliminate unnecessary lock asserts 2024-10-27 14:03:52 -05:00
x86 x86: do not leak msi_lock in msix_alloc() on iommu remapping failure 2024-10-27 03:50:15 +02:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures