Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178097079
D57465.1795951580.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
644 B
Referenced Files
None
Subscribers
None
D57465.1795951580.diff
View Options
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,16 @@
+/*
+ * 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)
+#ifndef for_each_if
+#define for_each_if(condition) if (!(condition)) {} else
+#endif /* for_each_if */
+#endif
+
+#endif /* _LINUXKPI_LINUX_UTIL_MACROS_H */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 11:26 AM (6 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38265639
Default Alt Text
D57465.1795951580.diff (644 B)
Attached To
Mode
D57465: LinuxKPI: Create `linux/util_macros.h`
Attached
Detach File
Event Timeline