|
@@ -244,6 +244,11 @@ void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
|
|
|
|
|
|
int __must_check sysfs_init(void);
|
|
|
|
|
|
+static inline void sysfs_enable_ns(struct kernfs_node *kn)
|
|
|
+{
|
|
|
+ return kernfs_enable_ns(kn);
|
|
|
+}
|
|
|
+
|
|
|
#else /* CONFIG_SYSFS */
|
|
|
|
|
|
static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns)
|
|
@@ -416,6 +421,10 @@ static inline int __must_check sysfs_init(void)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static inline void sysfs_enable_ns(struct kernfs_node *kn)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
#endif /* CONFIG_SYSFS */
|
|
|
|
|
|
static inline int __must_check sysfs_create_file(struct kobject *kobj,
|