All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH net-next] Squash-to: "mptcp: move from sha1 (v0) to sha256 (v1)"
@ 2020-01-16 10:12 Paolo Abeni
  0 siblings, 0 replies; only message in thread
From: Paolo Abeni @ 2020-01-16 10:12 UTC (permalink / raw)
  To: mptcp

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

Fixes the late_initcall signature, as reported by kbuildbot

Also rename the test function to be more consistent with other
in-kernel test-cases.

Signed-off-by: Paolo Abeni <pabeni(a)redhat.com>
---
 net/mptcp/crypto.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/mptcp/crypto.c b/net/mptcp/crypto.c
index 68f1758b96c2..40d1bb18fd60 100644
--- a/net/mptcp/crypto.c
+++ b/net/mptcp/crypto.c
@@ -120,7 +120,7 @@ static struct test_cast tests[] = {
 	},
 };
 
-static void __init crypto_test(void)
+static int __init test_mptcp_crypto(void)
 {
 	char hmac[20], hmac_hex[41];
 	u32 nonce1, nonce2;
@@ -145,7 +145,8 @@ static void __init crypto_test(void)
 		else
 			pr_info("test %d [ ok ]", i);
 	}
+	return 0;
 }
 
-late_initcall(crypto_test);
+late_initcall(test_mptcp_crypto);
 #endif
-- 
2.21.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-16 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 10:12 [MPTCP] [PATCH net-next] Squash-to: "mptcp: move from sha1 (v0) to sha256 (v1)" Paolo Abeni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.