Page MenuHomeFreeBSD

D57465.1795965749.diff
No OneTemporary

Authored By
Unknown
Size
598 B
Referenced Files
None
Subscribers
None

D57465.1795965749.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/util_macros.h b/sys/compat/linuxkpi/common/include/linux/util_macros.h
new file mode 100644
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/util_macros.h
@@ -0,0 +1,14 @@
+/*-
+ * Copyright (c) 2026 The FreeBSD Foundation
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#ifndef _LINUXKPI_LINUX_UTIL_MACROS_H
+#define _LINUXKPI_LINUX_UTIL_MACROS_H
+
+#if !defined(LINUXKPI_VERSION) || (LINUXKPI_VERSION >= 61500)
+#define for_each_if(condition) if (!(condition)) {} else
+#endif
+
+#endif /* _LINUXKPI_LINUX_UTIL_MACROS_H */

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 3:22 PM (6 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38661938
Default Alt Text
D57465.1795965749.diff (598 B)

Event Timeline