git: 1e30fc5d7ffa - stable/14 - LinuxKPI: Remove owner argument from class_create function on KPI layer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Aug 2024 22:27:48 UTC
The branch stable/14 has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e30fc5d7ffaa39281a0309c594a031d74ffd20a
commit 1e30fc5d7ffaa39281a0309c594a031d74ffd20a
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:44:12 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-08-01 21:09:40 +0000
LinuxKPI: Remove owner argument from class_create function on KPI layer
to chase Linux 6.4
Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: manu, emaste
Differential Revision: https://reviews.freebsd.org/D45610
(cherry picked from commit 460908ea55e67baf85d5cd1b6093154739cc0b9a)
---
sys/compat/linuxkpi/common/include/linux/device.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index 770c5c334c9a..98c16212512d 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -342,6 +342,9 @@ put_device(struct device *dev)
}
struct class *class_create(struct module *owner, const char *name);
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60400
+#define class_create(name) class_create(NULL, name)
+#endif
static inline int
class_register(struct class *class)