lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250704152737.14315-1-emreleno@gmail.com>
Date: Fri,  4 Jul 2025 18:27:37 +0300
From: Emre Cecanpunar <emreleno@...il.com>
To: gregkh@...uxfoundation.org,
	linux-staging@...ts.linux.dev
Cc: linux-tegra@...r.kernel.org,
	marvin24@....de,
	linux-kernel@...r.kernel.org,
	Emre Cecanpunar <emreleno@...il.com>
Subject: [PATCH] staging: nvec: silence macro argument warnings in NVEC_PHD()

checkpatch.pl warns that the NVEC_PHD macro defines unused arguments.
Use (void) casts to prevent unused argument warnings when the macro is disabled.

Signed-off-by: Emre Cecanpunar <emreleno@...il.com>
---
 drivers/staging/nvec/nvec_ps2.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/nvec/nvec_ps2.c b/drivers/staging/nvec/nvec_ps2.c
index 575233fa1677..38e736b3761e 100644
--- a/drivers/staging/nvec/nvec_ps2.c
+++ b/drivers/staging/nvec/nvec_ps2.c
@@ -28,7 +28,11 @@
 	print_hex_dump(KERN_DEBUG, str, DUMP_PREFIX_NONE, \
 			16, 1, buf, len, false)
 #else
-#define NVEC_PHD(str, buf, len) do { } while (0)
+#define NVEC_PHD(str, buf, len) do { \
+	(void)(str); \
+	(void)(buf); \
+	(void)(len); \
+} while (0)
 #endif
 
 enum ps2_subcmds {
-- 
2.50.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ