Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163626984
D57465.id181868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
645 B
Referenced Files
None
Subscribers
None
D57465.id181868.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
Sat, Jul 25, 11:39 PM (18 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35051321
Default Alt Text
D57465.id181868.diff (645 B)
Attached To
Mode
D57465: LinuxKPI: Create `linux/util_macros.h`
Attached
Detach File
Event Timeline
Log In to Comment