Skip to contentSkip to conversation

soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly

PATCH Applied Huisong Li 2 participants 2 messages Mar 14, 2025 HiSilicon kunpeng SoC hccs driver

lore
Share & tools
lore

Huisong Li

author maintainer
#0 lore raw

PATCH 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")
---
 drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/hisilicon/kunpeng_hccs.c +2 -2
index 8aa8dec14911..444a8f59b7da 100644
@@ -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
#1 lore raw
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 of sysfs_emit().

Fixes 23fe8112a231 ("soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs")
---
 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