Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2023 22:26:25 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4dac88cd150b - main - linuxkpi: Define `debugfs_initialized()`
Message-ID:  <202302152226.31FMQPQc093686@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=4dac88cd150b444cf67a09f7c0c8af795e9c1bd6

commit 4dac88cd150b444cf67a09f7c0c8af795e9c1bd6
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-02-14 23:38:59 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-15 22:19:41 +0000

    linuxkpi: Define `debugfs_initialized()`
    
    It always return true on FreeBSD, at least for now, because all DRM
    drivers using it depend on lindebugfs.
    
    Reviewed by:    manu
    Approved by:    manu
---
 sys/compat/linuxkpi/common/include/linux/debugfs.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/debugfs.h b/sys/compat/linuxkpi/common/include/linux/debugfs.h
index abda2d149582..734682cd7013 100644
--- a/sys/compat/linuxkpi/common/include/linux/debugfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/debugfs.h
@@ -52,6 +52,13 @@ struct debugfs_blob_wrapper {
 	size_t			size;
 };
 
+static inline bool
+debugfs_initialized(void)
+{
+
+	return (true);
+}
+
 struct dentry *debugfs_create_file(const char *name, umode_t mode,
     struct dentry *parent, void *data,
     const struct file_operations *fops);



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