All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pktgen: Remove trailing semicolon in macros
@ 2021-05-11 13:11 Huilong Deng
  0 siblings, 0 replies; only message in thread
From: Huilong Deng @ 2021-05-11 13:11 UTC (permalink / raw)
  To: davem, kuba, gustavoars; +Cc: linux-kernel, Huilong Deng

Macros should not use a trailing semicolon.

Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
---
 net/core/pktgen.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 3fba429f1f57..ec814ed09a57 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -176,7 +176,7 @@
 #define MAX_MPLS_LABELS 16 /* This is the max label stack depth */
 #define MPLS_STACK_BOTTOM htonl(0x00000100)
 
-#define func_enter() pr_debug("entering %s\n", __func__);
+#define func_enter() pr_debug("entering %s\n", __func__)
 
 #define PKT_FLAGS							\
 	pf(IPV6)		/* Interface in IPV6 Mode */		\
@@ -229,8 +229,8 @@ static char *pkt_flag_names[] = {
 #define M_QUEUE_XMIT		2	/* Inject packet into qdisc */
 
 /* If lock -- protects updating of if_list */
-#define   if_lock(t)           mutex_lock(&(t->if_lock));
-#define   if_unlock(t)           mutex_unlock(&(t->if_lock));
+#define   if_lock(t)           mutex_lock(&(t->if_lock))
+#define   if_unlock(t)           mutex_unlock(&(t->if_lock))
 
 /* Used to help with determining the pkts on receive */
 #define PKTGEN_MAGIC 0xbe9be955
-- 
2.31.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-11 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 13:11 [PATCH] pktgen: Remove trailing semicolon in macros Huilong Deng

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.