[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241211192209.22493-1-eisantosh95@gmail.com>
Date: Thu, 12 Dec 2024 00:52:04 +0530
From: eisantosh95@...il.com
To:
Cc: eisantosh95@...il.com,
Dave Penkler <dpenkler@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Carpenter <dan.carpenter@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
Rohit Chavan <roheetchavan@...il.com>,
linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: gpib: Wrapped macro in parentheses to ensure the correct evaluation order
From: Santosh Mahto <eisantosh95@...il.com>
ERROR found by checkpatch.pl script
Signed-off-by: Santosh Mahto <eisantosh95@...il.com>
---
drivers/staging/gpib/gpio/gpib_bitbang.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/gpib/gpio/gpib_bitbang.c b/drivers/staging/gpib/gpio/gpib_bitbang.c
index a2d562cbd65b..3aec39a6d6b5 100644
--- a/drivers/staging/gpib/gpio/gpib_bitbang.c
+++ b/drivers/staging/gpib/gpio/gpib_bitbang.c
@@ -44,10 +44,10 @@
pr_info("%s:%s - " frm, NAME, __func__, ## __VA_ARGS__); } \
while (0)
-#define LINVAL gpiod_get_value(DAV), \
- gpiod_get_value(NRFD), \
- gpiod_get_value(NDAC), \
- gpiod_get_value(SRQ)
+#define LINVAL (gpiod_get_value(DAV), \
+ gpiod_get_value(NRFD), \
+ gpiod_get_value(NDAC), \
+ gpiod_get_value(SRQ))
#define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
#include "gpibP.h"
--
2.25.1
Powered by blists - more mailing lists