Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159092905
D57465.id179260.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D57465.id179260.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/pm.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/pm.h
+++ sys/compat/linuxkpi/common/include/linux/pm.h
@@ -32,6 +32,7 @@
#define _LINUXKPI_LINUX_PM_H
#include <linux/kernel.h> /* pr_debug */
+#include <linux/util_macros.h> /* Transitive include */
#include <asm/atomic.h>
/* Needed but breaks linux_usb.c */
Index: sys/compat/linuxkpi/common/include/linux/util_macros.h
===================================================================
--- /dev/null
+++ sys/compat/linuxkpi/common/include/linux/util_macros.h
@@ -0,0 +1,39 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2020-2024 The FreeBSD Foundation
+ *
+ * This software was developed by Björn Zeeb under sponsorship from
+ * the FreeBSD Foundation.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#ifndef _LINUXKPI_LINUX_UTIL_MACROS_H
+#define _LINUXKPI_LINUX_UTIL_MACROS_H
+
+
+#ifndef for_each_if
+#define for_each_if(condition) if (!(condition)) {} else
+#endif /* for_each_if */
+
+#endif /* _LINUXKPI_LINUX_UTIL_MACROS_H */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 11, 1:11 AM (2 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33863039
Default Alt Text
D57465.id179260.diff (2 KB)
Attached To
Mode
D57465: LinuxKPI: Create linux/util_macros.h, and add it to linux/pm.h to satisify transitivie include in new amdgpu patches
Attached
Detach File
Event Timeline
Log In to Comment