Skip to content

Commit

Permalink
net: Silence seq_scale() unused warning
Browse files Browse the repository at this point in the history
On a CONFIG_NET=y build

net/core/secure_seq.c:22: warning: 'seq_scale' defined but not
used

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Boyd authored and David S. Miller committed Dec 6, 2011
1 parent 99b53bd commit 6810909
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/secure_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static int __init net_secret_init(void)
}
late_initcall(net_secret_init);

#ifdef CONFIG_INET
static u32 seq_scale(u32 seq)
{
/*
Expand All @@ -33,6 +34,7 @@ static u32 seq_scale(u32 seq)
*/
return seq + (ktime_to_ns(ktime_get_real()) >> 6);
}
#endif

#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
__u32 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr,
Expand Down

0 comments on commit 6810909

Please sign in to comment.