From nobody Thu Dec 25 03:42:40 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4F331136658; Tue, 23 Jan 2024 00:27:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705969674; cv=none; b=hetXgYHW/WsGeOGe6MAKZCbagT5ejr5Xvsz5BiQrOnIKCs/jfuizRljsgRbl2qq4hTCDjA+JbcvJr4zR7TWKKS0K21W58lsAL9DUd+cOT+T4NAM/+8uZ8PqPiO57lGbJPq1lurd48b+a39D9nAMr1elkLbs52eAHsh+2jw529pw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705969674; c=relaxed/simple; bh=8ldTsHBR8+UfMAM9Ms8ceIPB+37tzxc7GRSf9YnjQDw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=s4ZQtN+t1WpEY2cNPZPoq6x9Y8xVgZ0bScj6dJ5nJ9Py+G3jNuVbsThrMQyNjWn5ODPh6H7RRbdDCkJw3q7y/BJQp6kSeRzySF+Bpu5jq3XV6axxJf7ynSMqQ/SFbpTh+JHV17+clRxZZZa5lP1H6sfzlrYquIVI9tS0QvTBwp4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nJN51Ni9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nJN51Ni9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 068CCC433C7; Tue, 23 Jan 2024 00:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705969674; bh=8ldTsHBR8+UfMAM9Ms8ceIPB+37tzxc7GRSf9YnjQDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nJN51Ni9B+a8VNDjAlYPFoclpZMk5EnvfuuL717Ddy1ut6wtJrhZzCwi1sdTvTi1/ f6xKFMoicuhEW2DRfUkFPiNqRKpJzmpPbHIt8hQ8Th2f+OYScUSCUelIxiTWrlAN7N GSWV0lvLuSYVgoYH61aBuY2ophht1bDLwT7WoAaE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mirsad Todorovac , Takashi Iwai , Sasha Levin Subject: [PATCH 6.7 372/641] kselftest/alsa - conf: Stringify the printed errno in sysfs_get() Date: Mon, 22 Jan 2024 15:54:36 -0800 Message-ID: <20240122235829.600410402@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235818.091081209@linuxfoundation.org> References: <20240122235818.091081209@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 6.7-stable review patch. If anyone has any objections, please let me know. Acked-by: Mark Brown ------------------ From: Mirsad Todorovac [ Upstream commit fd38dd6abda589a8771e7872e4dea28c99c6a6ef ] GCC 13.2.0 reported the warning of the print format specifier: conf.c: In function =E2=80=98sysfs_get=E2=80=99: conf.c:181:72: warning: format =E2=80=98%s=E2=80=99 expects argument of typ= e =E2=80=98char *=E2=80=99, \ but argument 3 has type =E2=80=98int=E2=80=99 [-Wformat=3D] 181 | ksft_exit_fail_msg("sysfs: unable to read value '%s= ': %s\n", | = ~^ | = | | = char * | = %d The fix passes strerror(errno) as it was intended, like in the sibling error exit message. Fixes: aba51cd0949ae ("selftests: alsa - add PCM test") Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Cc: linux-sound@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mirsad Todorovac Acked-by: Mark Brown Link: https://lore.kernel.org/r/20240107173704.937824-5-mirsad.todorovac@al= u.unizg.hr Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- tools/testing/selftests/alsa/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/conf.c b/tools/testing/selftests/= alsa/conf.c index 00925eb8d9f4..89e3656a042d 100644 --- a/tools/testing/selftests/alsa/conf.c +++ b/tools/testing/selftests/alsa/conf.c @@ -179,7 +179,7 @@ static char *sysfs_get(const char *sysfs_root, const ch= ar *id) close(fd); if (len < 0) ksft_exit_fail_msg("sysfs: unable to read value '%s': %s\n", - path, errno); + path, strerror(errno)); while (len > 0 && path[len-1] =3D=3D '\n') len--; path[len] =3D '\0'; --=20 2.43.0