The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a274435d0dc04a876ce2898a9036223972d23fdc
commit a274435d0dc04a876ce2898a9036223972d23fdc Author: Bjoern A. Zeeb <b...@freebsd.org> AuthorDate: 2025-08-13 21:52:42 +0000 Commit: Bjoern A. Zeeb <b...@freebsd.org> CommitDate: 2025-08-29 13:18:41 +0000 LinuxKPI: implement str_disable_enable() Implement str_disable_enable() needed by a wireless driver by using the already existing str_enable_disable() with a toggled argument. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D52081 --- sys/compat/linuxkpi/common/include/linux/string_helpers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/string_helpers.h b/sys/compat/linuxkpi/common/include/linux/string_helpers.h index 1bdff2730361..2c6fe0b1708d 100644 --- a/sys/compat/linuxkpi/common/include/linux/string_helpers.h +++ b/sys/compat/linuxkpi/common/include/linux/string_helpers.h @@ -66,4 +66,6 @@ str_enable_disable(bool value) return "disable"; } +#define str_disable_enable(_v) str_enable_disable(!(_v)) + #endif