From: eisantosh95@gmail.com
Cc: eisantosh95@gmail.com, Dave Penkler <dpenkler@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Dan Carpenter <dan.carpenter@linaro.org>,
Arnd Bergmann <arnd@arndb.de>,
Rohit Chavan <roheetchavan@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: gpib: Wrapped macro in parentheses to ensure the correct evaluation order
Date: Thu, 12 Dec 2024 00:52:04 +0530 [thread overview]
Message-ID: <20241211192209.22493-1-eisantosh95@gmail.com> (raw)
From: Santosh Mahto <eisantosh95@gmail.com>
ERROR found by checkpatch.pl script
Signed-off-by: Santosh Mahto <eisantosh95@gmail.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
next reply other threads:[~2024-12-11 19:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 19:22 eisantosh95 [this message]
2024-12-11 20:01 ` [PATCH] staging: gpib: Wrapped macro in parentheses to ensure the correct evaluation order Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241211192209.22493-1-eisantosh95@gmail.com \
--to=eisantosh95@gmail.com \
--cc=arnd@arndb.de \
--cc=dan.carpenter@linaro.org \
--cc=dpenkler@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=roheetchavan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.