Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178094668
D57465.1795943531.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
705 B
Referenced Files
None
Subscribers
None
D57465.1795943531.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,19 @@
+/*-
+ * Copyright (c) 2026 The FreeBSD Foundation
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+/*
+ * `for_each_if()` was moved from <drm/drm_util.h> to <linux/util_macros.h> in
+ * Linux 6.15.
+ */
+
+#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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 9:12 AM (3 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38662088
Default Alt Text
D57465.1795943531.diff (705 B)
Attached To
Mode
D57465: LinuxKPI: Create `linux/util_macros.h`
Attached
Detach File
Event Timeline