[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250828075406.386208-1-rongqianfeng@vivo.com>
Date: Thu, 28 Aug 2025 15:53:56 +0800
From: Qianfeng Rong <rongqianfeng@...o.com>
To: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Nuno Sá <nuno.sa@...log.com>,
Srinivas Kandagatla <srini@...nel.org>,
Venkata Prasad Potturu <venkataprasad.potturu@....com>,
Vijendar Mukunda <Vijendar.Mukunda@....com>,
Ingo Molnar <mingo@...nel.org>,
Charles Keepax <ckeepax@...nsource.cirrus.com>,
Mario Limonciello <mario.limonciello@....com>,
Peter Zijlstra <peterz@...radead.org>,
Qianfeng Rong <rongqianfeng@...o.com>,
linux-sound@...r.kernel.org (open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...),
linux-kernel@...r.kernel.org (open list),
linux-arm-msm@...r.kernel.org (open list:QCOM AUDIO (ASoC) DRIVERS)
Subject: [PATCH 0/3] ASoC: use int type to store negative error codes
The 'ret' variable usually is used to store returns from some functions,
which return either zero on success or negative error codes on failure.
Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but it's ugly as pants. Additionally, assigning negative error
codes to unsigned type may trigger a GCC warning when the -Wsign-conversion
flag is enabled.
Change "ret" from u32/unsigned int to int type. No effect on runtime.
Qianfeng Rong (3):
ASoC: amd: use int type to store negative error codes
ASoC: adau1977: use int type to store negative error codes
ASoC: qcom: use int type to store negative error codes
sound/soc/amd/acp/acp-rembrandt.c | 2 +-
sound/soc/amd/raven/acp3x-i2s.c | 3 ++-
sound/soc/amd/vangogh/acp5x-i2s.c | 3 ++-
sound/soc/codecs/adau1977.c | 2 +-
sound/soc/qcom/lpass-cdc-dma.c | 3 ++-
sound/soc/qcom/lpass-hdmi.c | 2 +-
6 files changed, 9 insertions(+), 6 deletions(-)
--
2.34.1
Powered by blists - more mailing lists