aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-12-08 21:54:29 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-12-13 18:18:46 +0000
commit509707e8b6b7326c7f4793b6e291f0a8e6939412 (patch)
tree7902671de341bc6acf13f4fb038e299309c2bdf3
parentb723bcd05a991d446491e914f2b9f35e66227398 (diff)
downloadsrc-509707e8b6b7326c7f4793b6e291f0a8e6939412.tar.gz
src-509707e8b6b7326c7f4793b6e291f0a8e6939412.zip
linuxkpi: Add `sysfs_create_link()` in <linux/sysfs.h>
[Why] The amdgpu DRM driver started to use it in Linux 5.18. [How] The function is a no-op as I'm not sure how to implement this with sysctls yet. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43022
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sysfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h
index 3dc1a18fdbd3..8b4160453a3a 100644
--- a/sys/compat/linuxkpi/common/include/linux/sysfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h
@@ -153,6 +153,15 @@ sysfs_remove_file(struct kobject *kobj, const struct attribute *attr)
}
static inline int
+sysfs_create_link(struct kobject *kobj __unused,
+ struct kobject *target __unused, const char *name __unused)
+{
+ /* TODO */
+
+ return (0);
+}
+
+static inline int
sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs)
{
int error = 0;