[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250831084958.431913-1-rongqianfeng@vivo.com>
Date: Sun, 31 Aug 2025 16:49:55 +0800
From: Qianfeng Rong <rongqianfeng@...o.com>
To: Andrew Lunn <andrew@...n.ch>,
Gregory Clement <gregory.clement@...tlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
Jacky Huang <ychuang3@...oton.com>,
Shan-Chun Hung <schung@...oton.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Bartosz Golaszewski <brgl@...ev.pl>,
linux-arm-kernel@...ts.infradead.org (moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x,...),
linux-gpio@...r.kernel.org (open list:PIN CONTROL SUBSYSTEM),
linux-kernel@...r.kernel.org (open list),
linux-renesas-soc@...r.kernel.org (open list:PIN CONTROLLER - RENESAS)
Cc: Qianfeng Rong <rongqianfeng@...o.com>
Subject: [PATCH 0/3] pinctrl: 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 can be confusing. 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):
pinctrl: armada-37xx: Use int type to store negative error codes
pinctrl: ma35: Use int type to store negative error codes
pinctrl: renesas: Use int type to store negative error codes
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 6 ++++--
drivers/pinctrl/nuvoton/pinctrl-ma35.c | 3 ++-
drivers/pinctrl/renesas/pinctrl.c | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
--
2.34.1
Powered by blists - more mailing lists