All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cdrom: add parentheses around macro arguments
@ 2025-09-05 17:59 Joey Pabalinas
  2025-09-06  6:03 ` kernel test robot
  2025-09-06  6:28 ` Al Viro
  0 siblings, 2 replies; 4+ messages in thread
From: Joey Pabalinas @ 2025-09-05 17:59 UTC (permalink / raw)
  To: Phillip Potter; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
---
 drivers/cdrom/cdrom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index 31ba1f8c1f7865dc99..462ee74621da6f32da 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -408,11 +408,11 @@ static int cdrom_get_disc_info(struct cdrom_device_info *cdi,
  * hack to have the capability flags defined const, while we can still
  * change it here without gcc complaining at every line.
  */
 #define ENSURE(cdo, call, bits)					\
 do {								\
-	if (cdo->call == NULL)					\
+	if ((cdo)->(call) == NULL)				\
 		WARN_ON_ONCE((cdo)->capability & (bits));	\
 } while (0)
 
 /*
  * the first prototypes used 0x2c as the page code for the mrw mode page,
-- 
Cheers,
Joey Pabalinas


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2025-09-09 20:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 17:59 [PATCH] cdrom: add parentheses around macro arguments Joey Pabalinas
2025-09-06  6:03 ` kernel test robot
2025-09-06  6:28 ` Al Viro
2025-09-09 20:47   ` Phillip Potter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.