Message ID | 20180527092131.12270-1-fw@strlen.de |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | [nf-next] netfilter: nf_tables: fix endian mismatch in return type | expand |
On Sun, May 27, 2018 at 11:21:31AM +0200, Florian Westphal wrote: > harmless, but it avoids sparse warnings: > > nf_tables_api.c:2813:16: warning: incorrect type in return expression (different base types) > nf_tables_api.c:2863:47: warning: incorrect type in argument 3 (different base types) > nf_tables_api.c:3524:47: warning: incorrect type in argument 3 (different base types) > nf_tables_api.c:3538:55: warning: incorrect type in argument 3 (different base types) Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index ab306e169d36..6bffbe9d5d87 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -2806,7 +2806,7 @@ static int nf_msecs_to_jiffies64(const struct nlattr *nla, u64 *result) return 0; } -static u64 nf_jiffies64_to_msecs(u64 input) +static __be64 nf_jiffies64_to_msecs(u64 input) { u64 ms = jiffies64_to_nsecs(input);
harmless, but it avoids sparse warnings: nf_tables_api.c:2813:16: warning: incorrect type in return expression (different base types) nf_tables_api.c:2863:47: warning: incorrect type in argument 3 (different base types) nf_tables_api.c:3524:47: warning: incorrect type in argument 3 (different base types) nf_tables_api.c:3538:55: warning: incorrect type in argument 3 (different base types) Signed-off-by: Florian Westphal <fw@strlen.de> ---