diff mbox series

[v9,01/25] sysfs: export sysfs_remove_file_self()

Message ID 20200221104721.350-2-jinpuwang@gmail.com (mailing list archive)
State New, archived
Headers show
Series RTRS (former IBTRS) RDMA Transport Library and RNBD (former IBNBD) RDMA Network Block Device | expand

Commit Message

Jinpu Wang Feb. 21, 2020, 10:46 a.m. UTC
From: Jack Wang <jinpu.wang@cloud.ionos.com>

Function is going to be used in transport over RDMA module
in subsequent patches, so export it to GPL modules.

Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org
[jwang: extend the commit message]
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
---
 fs/sysfs/file.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bart Van Assche March 1, 2020, 12:24 a.m. UTC | #1
On 2020-02-21 02:46, Jack Wang wrote:
> Function is going to be used in transport over RDMA module
> in subsequent patches, so export it to GPL modules.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Jinpu Wang March 2, 2020, 2:37 p.m. UTC | #2
On Sun, Mar 1, 2020 at 1:24 AM Bart Van Assche <bvanassche@acm.org> wrote:
>
> On 2020-02-21 02:46, Jack Wang wrote:
> > Function is going to be used in transport over RDMA module
> > in subsequent patches, so export it to GPL modules.
>
> Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Thanks Bart!
diff mbox series

Patch

diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 130fc6fbcc03..1ff4672d7746 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)
 {