Skip to content

Commit d6501de

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nf_tables: fix endian mismatch in return type
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 <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent eb1fb14 commit d6501de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2830,7 +2830,7 @@ static int nf_msecs_to_jiffies64(const struct nlattr *nla, u64 *result)
28302830
return 0;
28312831
}
28322832

2833-
static u64 nf_jiffies64_to_msecs(u64 input)
2833+
static __be64 nf_jiffies64_to_msecs(u64 input)
28342834
{
28352835
u64 ms = jiffies64_to_nsecs(input);
28362836

0 commit comments

Comments
 (0)