Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro
@ 2025-08-17 19:24 Mohammed Guermoud
  2025-08-18  6:29 ` Dan Carpenter
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Mohammed Guermoud @ 2025-08-17 19:24 UTC (permalink / raw)
  To: marvin24, gregkh
  Cc: ac100, linux-tegra, linux-staging, linux-kernel,
	Mohammed Guermoud

The NVEC_PHD macro was defined with three arguments (str, buf, len)
that were not used in its empty body, causing a compiler warning.

This patch silences the warning by explicitly casting the unused
arguments to (void), making the intent clear without changing
functionality.

Signed-off-by: Mohammed Guermoud <mohammed.guermoud@gmail.com>
---
 drivers/staging/nvec/nvec_ps2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/nvec/nvec_ps2.c b/drivers/staging/nvec/nvec_ps2.c
index 575233fa1677..7accdcafeeac 100644
--- a/drivers/staging/nvec/nvec_ps2.c
+++ b/drivers/staging/nvec/nvec_ps2.c
@@ -28,7 +28,7 @@
 	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.1


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

end of thread, other threads:[~2025-08-18 19:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-17 19:24 [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro Mohammed Guermoud
2025-08-18  6:29 ` Dan Carpenter
2025-08-18  6:36 ` Greg KH
2025-08-18 13:43 ` kernel test robot
2025-08-18 15:36 ` Geert Uytterhoeven
2025-08-18 19:52   ` Mohammed Guermoud

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