Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2024 22:27:48 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1e30fc5d7ffa - stable/14 - LinuxKPI: Remove owner argument from class_create function on KPI layer
Message-ID:  <202408012227.471MRmfg027988@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408012227.471MRmfg027988>