soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
Huisong Li
maintainerPATCH v2 1/1 soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
String assembly should use sysfs_emit_at() instead of sysfs_emit().
Fixes 23fe8112a231 ("soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs")
Reviewed-by Jonathan Cameron <[email protected]>
Signed-off-by Huisong Li <[email protected]>
--- drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/hisilicon/kunpeng_hccs.c +2 -2
@@ -1539,8 +1539,8 @@ static ssize_t used_types_show(struct kobject *kobj,u16 i;for (i =0 ; i < hdev->used_type_num -1 ; i++) - len +=sysfs_emit (&buf[len],"%s " , hdev->type_name_maps[i].name); - len +=sysfs_emit (&buf[len],"%s\n" , hdev->type_name_maps[i].name); + len +=sysfs_emit_at (buf, len,"%s " , hdev->type_name_maps[i].name); + len +=sysfs_emit_at (buf, len,"%s\n" , hdev->type_name_maps[i].name);return len; }
Signature · 1 line
2.33.0
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:
Quoted 8 lines · On Fri, 14 Mar 2025 18:01:43 +0800 you wrote:
String assembly should use
sysfs_emit_at()instead ofsysfs_emit().Fixes 23fe8112a231 ("soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs")Reviewed-by Jonathan Cameron <[email protected]>Signed-off-by Huisong Li <[email protected]>--- drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [v2] soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
https://git.kernel.org/soc/soc/c/262666c04be6
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html