]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs
authorye xingchen <ye.xingchen@zte.com.cn>
Sun, 31 Dec 2023 07:12:24 +0000 (16:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:27 +0000 (15:18 +0100)
commit264547e13f80437a05f4f28fb636898750a3c644
tree9918cf05903e1c72875115d9279fd9ac444c254c
parent87ffbb9e24badbb56873c3f84f1fbd062af316bb
ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs

[ Upstream commit 72ee45fd46d0d3578c4e6046f66fae3218543ce3 ]

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/server.c