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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250916143636.51986-1-alok.a.tiwari@oracle.com>
Date: Tue, 16 Sep 2025 07:36:34 -0700
From: Alok Tiwari <alok.a.tiwari@...cle.com>
To: mani@...nel.org, vkoul@...nel.org, dmaengine@...r.kernel.org
Cc: alok.a.tiwari@...cle.com, linux-kernel@...r.kernel.org
Subject: [PATCH] dmaengine: dw-edma: fix RD_REGISTER_LEGACY macro definition

The RD_REGISTER_LEGACY macro lacks the "dw" argument but still
references it inside the macro body. This causes build failures
or incorrect expansions if the macro is ever used.

Currently the macro is unused, so the issue is not visible, but
fix it now for consistency with WR_REGISTER_LEGACY and the other
register access macros.

Fixes: d0152168538e ("dmaengine: dw-edma: Move eDMA data pointer to debugfs node descriptor")
Signed-off-by: Alok Tiwari <alok.a.tiwari@...cle.com>
---
 drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
index 406f169b09a7..1dd3d2ae86ba 100644
--- a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
+++ b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
@@ -47,7 +47,7 @@
 
 #define WR_REGISTER_LEGACY(dw, name) \
 	{ dw, #name, REGS_ADDR(dw, type.legacy.wr_##name) }
-#define RD_REGISTER_LEGACY(name) \
+#define RD_REGISTER_LEGACY(dw, name) \
 	{ dw, #name, REGS_ADDR(dw, type.legacy.rd_##name) }
 
 #define WR_REGISTER_UNROLL(dw, name) \
-- 
2.50.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ