opnsense-src/sys
John Baldwin dcdb18bd3c bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY
Explicitly use an array of 6 zeroes instead of a C string containing
nul characters.  GCC 15 warns about the truncation, but this is
cleaner regardless.

In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/bluetooth.h:51,
                 from usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:45:
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c: In function 'register_sdp':
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:96:13: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (7 chars into 6 available) [-Werror=unterminated-string-initialization]
   96 |             NG_HCI_BDADDR_ANY, (const uint8_t *)&record, sizeof(record),
      |             ^~~~~~~~~~~~~~~~~

Reviewed by:	dim
Differential Revision:	https://reviews.freebsd.org/D54869

(cherry picked from commit 72a6991b80c6e6c47a3b84337f62f0a02bd30391)
2026-01-30 18:30:10 +02:00
..
amd64 x86: add machine/ifunc.h 2026-01-27 02:38:22 +02:00
arm vchiq: fix build with clang 21 2026-01-26 09:41:28 +01:00
arm64 arm64/vgic_v3: Fix an inverted test when reading GICD_I<C|S>ENABLER 2026-01-26 00:51:44 +00:00
bsm
cam mmc(4): Fix a typo in a device debug message 2026-01-10 14:09:17 +01:00
cddl mips: remove mips leftovers 2026-01-12 14:09:14 -05:00
compat freebsd32_setcred: Copy all of the setcred fields individually 2026-01-29 10:30:33 -05:00
conf vchiq: fix build with clang 21 2026-01-26 09:41:28 +01:00
contrib zfs: emit .note.GNU-stack section for all ELF targets 2026-01-12 18:58:28 +01:00
crypto crypto: avoid warnings about too-long initializer strings 2026-01-02 21:41:35 +01:00
ddb
dev mxge(4): avoid clang 21 warning in NO-IP configuration 2026-01-26 09:41:28 +01:00
dts
fs nfsd: Fix handling of hidden/system during Open/Create 2026-01-23 16:43:05 -08:00
gdb
geom geom(9): struct bio KBI fix 2025-12-22 00:37:40 +00:00
gnu
i386 x86: add machine/ifunc.h 2026-01-27 02:38:22 +02:00
isa
kern linker: Reset DMAP protections in link_elf_unload_file() 2026-01-27 14:10:48 +00:00
kgssapi kgssapi: Remove broken MOD_UNLOAD code 2025-12-09 11:32:09 -05:00
libkern libkern: Avoid a one-byte OOB access in strndup() 2025-12-15 14:09:37 +00:00
modules modules: miiproxy: Fix standalone build 2026-01-26 16:33:26 +08:00
net if_ovpn: add interface counters 2026-01-28 10:09:10 +01:00
net80211 net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate 2026-01-17 07:51:24 +00:00
netgraph bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY 2026-01-30 18:30:10 +02:00
netinet sctp: support bridge interfaces 2026-01-21 20:55:36 +01:00
netinet6 in6: Modify address prefix lifetimes when updating address lifetimes 2026-01-27 14:10:47 +00:00
netipsec sys/netipsec: ensure sah stability during input callback processing 2025-12-29 02:57:03 +02:00
netlink tests/ktest_netlink_message_writer: remove INVARIANTS requirement 2026-01-24 20:53:34 -05:00
netpfil netpfil/ipfw: Fix a typo in a source code comment 2026-01-25 18:51:12 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc powerpc: explicitly cast the timebase printfs 2026-01-29 22:37:42 -08:00
riscv riscv: add (a dummy) acpica_machdep.h 2026-01-17 07:50:57 +00:00
rpc
security MAC: Use the current thread's user ABI to determine the layout of struct mac 2026-01-06 14:33:25 +01:00
sys freebsd32_setcred: Copy all of the setcred fields individually 2026-01-29 10:30:33 -05:00
teken
tests
tools gdb: Fix some PEP 8 violations 2025-12-01 16:37:56 +00:00
ufs
vm linker: Reset DMAP protections in link_elf_unload_file() 2026-01-27 14:10:48 +00:00
x86 x86 lapic: Dump LVTs from the ddb show lapic command 2026-01-25 02:23:35 +02:00
xdr
xen sys/xen: Use __printflike() instead of format(printf) 2026-01-04 02:46:49 +01:00
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