From nobody Wed Dec 17 22:48:29 2025 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 832F91A3174 for ; Fri, 14 Mar 2025 08:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741941399; cv=none; b=HeVFHkhvJcgItazkgis+t0vn6IjoXFWDGaLYgqpyiYJNGJCqMu6fm0tpQyL1wMGBCgzFdaaY4DMGGxkNwUCatg6BwDKhshQKMQI7mY1JkCsrT6e8k2YfHiJ48CUswYS+qZ9GjLei2CPLPaSlV8XI1BfqojXpSnz/1IMZsbptHww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741941399; c=relaxed/simple; bh=SrrfmRRllZqFek6rbG9nWhX6cTCKReG+Vak6XmvztYc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bsb/0UaXiXbv6GvoThs8A5fNojRCDdDvtXB9hN2yMKeyz8ww0a7/CqxWbL4BhV1Gf/fRjxtwrmeXSnbJg0RBGYv++RGq/NCP9OfXeZn/8qKEYnkvx5Nu/+CuhplJxIV09BLyFP8Qqx2OjD6v72+EvuBHe4rcGoL0kvQncXN6uuA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4ZDd0r21k7zCs9h; Fri, 14 Mar 2025 16:33:00 +0800 (CST) Received: from dggemv711-chm.china.huawei.com (unknown [10.1.198.66]) by mail.maildlp.com (Postfix) with ESMTPS id ECE59180102; Fri, 14 Mar 2025 16:36:33 +0800 (CST) Received: from kwepemn100009.china.huawei.com (7.202.194.112) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 14 Mar 2025 16:36:33 +0800 Received: from localhost.localdomain (10.90.30.45) by kwepemn100009.china.huawei.com (7.202.194.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 14 Mar 2025 16:36:33 +0800 From: Huisong Li To: CC: , , , , , Subject: [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly Date: Fri, 14 Mar 2025 16:28:56 +0800 Message-ID: <20250314082856.3257783-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemn100009.china.huawei.com (7.202.194.112) Content-Type: text/plain; charset="utf-8" String assembly should use sysfs_emit_at() instead of sysfs_emit(). Signed-off-by: Huisong Li Reviewed-by: Jonathan Cameron --- drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/k= unpeng_hccs.c index 8aa8dec14911..444a8f59b7da 100644 --- 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; =20 for (i =3D 0; i < hdev->used_type_num - 1; i++) - len +=3D sysfs_emit(&buf[len], "%s ", hdev->type_name_maps[i].name); - len +=3D sysfs_emit(&buf[len], "%s\n", hdev->type_name_maps[i].name); + len +=3D sysfs_emit_at(buf, len, "%s ", hdev->type_name_maps[i].name); + len +=3D sysfs_emit_at(buf, len, "%s\n", hdev->type_name_maps[i].name); =20 return len; } --=20 2.33.0