Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171469995
D58254.id182024.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
684 B
Referenced Files
None
Subscribers
None
D58254.id182024.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/util_macros.h
===================================================================
--- /dev/null
+++ sys/compat/linuxkpi/common/include/linux/util_macros.h
@@ -0,0 +1,18 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2026 The FreeBSD Foundation
+ */
+
+#ifndef _LINUXKPI_LINUX_UTIL_MACROS_H_
+#define _LINUXKPI_LINUX_UTIL_MACROS_H_
+
+/*
+ * `for_each_if()` was moved from <drm/drm_util.h> to <linux/util_macros.h> in
+ * Linux 6.15.
+ */
+#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
Sat, Sep 12, 7:20 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38723544
Default Alt Text
D58254.id182024.diff (684 B)
Attached To
Mode
D58254: linuxkpi: Define `for_each_if()`
Attached
Detach File
Event Timeline
Log In to Comment