From: "KaiLong Wang" <wangkailong@jari.cn>
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] net: snmp: Clean up errors in snmp.h
Date: Thu, 28 Sep 2023 11:14:40 +0800 (GMT+08:00) [thread overview]
Message-ID: <55bdec01.8ad.18ad9c80cca.Coremail.wangkailong@jari.cn> (raw)
Fix the following errors reported by checkpatch:
ERROR: space required after that ',' (ctx:VxV)
ERROR: spaces required around that '==' (ctx:VxV)
Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
---
include/net/snmp.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/net/snmp.h b/include/net/snmp.h
index 468a67836e2f..92e92bebde2c 100644
--- a/include/net/snmp.h
+++ b/include/net/snmp.h
@@ -31,7 +31,7 @@ struct snmp_mib {
int entry;
};
-#define SNMP_MIB_ITEM(_name,_entry) { \
+#define SNMP_MIB_ITEM(_name, _entry) { \
.name = _name, \
.entry = _entry, \
}
@@ -155,7 +155,7 @@ struct linux_tls_mib {
} while (0)
-#if BITS_PER_LONG==32
+#if BITS_PER_LONG == 32
#define __SNMP_ADD_STATS64(mib, field, addend) \
do { \
--
2.17.1
next reply other threads:[~2023-09-28 3:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 3:14 KaiLong Wang [this message]
2023-10-02 16:29 ` Simon Horman
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=55bdec01.8ad.18ad9c80cca.Coremail.wangkailong@jari.cn \
--to=wangkailong@jari.cn \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®