From: Lucas Tanure <tanure@linux.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>,
Patrick McHardy <kaber@trash.net>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"David S . Miller" <davem@davemloft.net>,
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
coreteam@netfilter.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/4] netfilter: ipv4: use preferred kernel types
Date: Sat, 30 Jan 2016 11:17:57 -0200 [thread overview]
Message-ID: <1454159878-20706-3-git-send-email-tanure@linux.com> (raw)
In-Reply-To: <1454159878-20706-1-git-send-email-tanure@linux.com>
As suggested by checkpatch.pl:
CHECK: Prefer kernel type 'uX' over 'uintX_t'
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
net/ipv4/netfilter/ip_tables.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index 79d4a04..dcc61c0 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -1411,7 +1411,7 @@ compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
{
struct xt_entry_target *t;
struct compat_ipt_entry __user *ce;
- u_int16_t target_offset, next_offset;
+ u16 target_offset, next_offset;
compat_uint_t origsize;
const struct xt_entry_match *ematch;
int ret = 0;
@@ -2122,8 +2122,7 @@ EXPORT_SYMBOL(ipt_unregister_table);
/* Returns 1 if the type and code is matched by the range, 0 otherwise */
static inline bool
-icmp_type_code_match(u_int8_t test_type, u_int8_t min_code, u_int8_t max_code,
- u_int8_t type, u_int8_t code,
+icmp_type_code_match(u8 test_type, u8 min_code, u8 max_code, u8 type, u8 code,
bool invert)
{
return ((test_type == 0xFF) ||
--
2.7.0
next prev parent reply other threads:[~2016-01-30 13:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-30 13:17 [PATCH 1/4] netfilter: ipv4: use linux/uaccess.h Lucas Tanure
2016-01-30 13:17 ` [PATCH 2/4] netfilter: ipv4: EXPORT_SYMBOL should be shortly thereafter the exported function Lucas Tanure
2016-01-30 13:17 ` Lucas Tanure [this message]
2016-01-30 13:45 ` [PATCH 3/4] netfilter: ipv4: use preferred kernel types Patrick McHardy
2016-01-30 14:05 ` Lucas Tanure
2016-01-30 17:25 ` Joe Perches
2016-01-30 17:51 ` Eric Dumazet
2016-01-30 18:26 ` Joe Perches
2016-01-30 18:41 ` Lucas Tanure
2016-02-01 16:37 ` David Laight
2016-02-01 19:41 ` David Miller
2016-02-01 20:04 ` Tom Herbert
2016-01-30 13:17 ` [PATCH 4/4] netfilter: ipv4: spaces preferred around operators Lucas Tanure
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=1454159878-20706-3-git-send-email-tanure@linux.com \
--to=tanure@linux.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.org \
/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;
as well as URLs for NNTP newsgroup(s).