Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68109090 authored by Stephen Boyd's avatar Stephen Boyd Committed by David S. Miller
Browse files

net: Silence seq_scale() unused warning



On a CONFIG_NET=y build

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

Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99b53bdd
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@ static int __init net_secret_init(void)
}
}
late_initcall(net_secret_init);
late_initcall(net_secret_init);


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


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