Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH 0/3] crypto: Use int type to store negative error codes
@ 2025-09-03 13:25 Qianfeng Rong
  2025-09-03 13:25 ` [PATCH 3/3] crypto: tegra - " Qianfeng Rong
  2025-09-13  4:27 ` [PATCH 0/3] crypto: " Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Qianfeng Rong @ 2025-09-03 13:25 UTC (permalink / raw)
  To: Ashish Kalra, Tom Lendacky, John Allen, Herbert Xu,
	David S. Miller, Akhil R, Thierry Reding, Jonathan Hunter,
	Uwe Kleine-König, Colin Ian King, Qianfeng Rong,
	open list:AMD CRYPTOGRAPHIC COPROCESSOR (CCP) DRIVER - SE...,
	open list, open list:TEGRA ARCHITECTURE SUPPORT

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):
  crypto: ccp - Use int type to store negative error codes
  crypto: hisilicon/sec - Use int type to store negative error codes
  crypto: tegra - Use int type to store negative error codes

 drivers/crypto/ccp/sev-dev.c           | 3 ++-
 drivers/crypto/hisilicon/sec/sec_drv.c | 3 ++-
 drivers/crypto/tegra/tegra-se-hash.c   | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-13  4:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 13:25 [PATCH 0/3] crypto: Use int type to store negative error codes Qianfeng Rong
2025-09-03 13:25 ` [PATCH 3/3] crypto: tegra - " Qianfeng Rong
2025-09-13  4:27 ` [PATCH 0/3] crypto: " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox