2020-02-21 10:48:31

by 王金浦

[permalink] [raw]
Subject: [PATCH v9 01/25] sysfs: export sysfs_remove_file_self()

From: Jack Wang <[email protected]>

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 <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Cc: [email protected]
[jwang: extend the commit message]
Signed-off-by: Jack Wang <[email protected]>
---
fs/sysfs/file.c | 1 +
1 file changed, 1 insertion(+)

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)
{
--
2.17.1


2020-03-01 00:26:26

by Bart Van Assche

[permalink] [raw]
Subject: Re: [PATCH v9 01/25] sysfs: export sysfs_remove_file_self()

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 <[email protected]>

2020-03-02 14:39:18

by Jinpu Wang

[permalink] [raw]
Subject: Re: [PATCH v9 01/25] sysfs: export sysfs_remove_file_self()

On Sun, Mar 1, 2020 at 1:24 AM Bart Van Assche <[email protected]> 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 <[email protected]>
Thanks Bart!