diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 26bbf960e2a2e28e682e38a6bcc311722d95d416..d81f9f974a35b749af609c33a600e1a8618e23cc 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -492,6 +492,7 @@ bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr)
 	kernfs_put(kn);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(sysfs_remove_file_self);
 
 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *ptr)
 {