projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe614f
)
soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
author
Huisong Li
<lihuisong@huawei.com>
Fri, 14 Mar 2025 10:01:43 +0000
(18:01 +0800)
committer
Arnd Bergmann
<arnd@arndb.de>
Fri, 14 Mar 2025 17:03:55 +0000
(18:03 +0100)
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 <Jonathan.Cameron@huawei.com>
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link:
https://lore.kernel.org/r/20250314100143.3377268-1-lihuisong@huawei.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/hisilicon/kunpeng_hccs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/soc/hisilicon/kunpeng_hccs.c
b/drivers/soc/hisilicon/kunpeng_hccs.c
index 8aa8dec14911cdcdc2a2d11606bf6159144e9489..444a8f59b7da7e3fd694bc26e749e859beaf2ff6 100644
(file)
--- a/
drivers/soc/hisilicon/kunpeng_hccs.c
+++ b/
drivers/soc/hisilicon/kunpeng_hccs.c
@@
-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;
}