kunit: mptcp: adhere to KUNIT formatting standard
authorNico Pache <npache@redhat.com>
Fri, 16 Apr 2021 22:38:01 +0000 (15:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Apr 2021 00:10:40 +0000 (17:10 -0700)
Drop 'S' from end of CONFIG_MPTCP_KUNIT_TESTS in order to adhere to the
KUNIT *_KUNIT_TEST config name format.

Fixes: a00a582203db (mptcp: move crypto test to KUNIT)
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Nico Pache <npache@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/Kconfig
net/mptcp/Makefile
net/mptcp/crypto.c
net/mptcp/token.c

index a014149aa3233831cdf40a47e8b327f8a46d669d..20328920f6ed17e632340c065d46ec915ec5510a 100644 (file)
@@ -22,7 +22,7 @@ config MPTCP_IPV6
        depends on IPV6=y
        default y
 
-config MPTCP_KUNIT_TESTS
+config MPTCP_KUNIT_TEST
        tristate "This builds the MPTCP KUnit tests" if !KUNIT_ALL_TESTS
        depends on KUNIT
        default KUNIT_ALL_TESTS
index d2642c012a6a3957947e6b8781c32f7a33011d78..e54daceac58be2b6d6ddb6457b615e6d39c6acfe 100644 (file)
@@ -9,4 +9,4 @@ obj-$(CONFIG_INET_MPTCP_DIAG) += mptcp_diag.o
 
 mptcp_crypto_test-objs := crypto_test.o
 mptcp_token_test-objs := token_test.o
-obj-$(CONFIG_MPTCP_KUNIT_TESTS) += mptcp_crypto_test.o mptcp_token_test.o
+obj-$(CONFIG_MPTCP_KUNIT_TEST) += mptcp_crypto_test.o mptcp_token_test.o
index b472dc149856996444f0071ddaa177ecc4c3b6c3..a8931349933c11688be1f0e321d902e8030b8531 100644 (file)
@@ -78,6 +78,6 @@ void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac)
        sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac);
 }
 
-#if IS_MODULE(CONFIG_MPTCP_KUNIT_TESTS)
+#if IS_MODULE(CONFIG_MPTCP_KUNIT_TEST)
 EXPORT_SYMBOL_GPL(mptcp_crypto_hmac_sha);
 #endif
index feb4b9ffd46258fed457742a25cbfbde8e0e87d4..8f0270a780ce5ff3d43a528877b92e6295d0f32c 100644 (file)
@@ -402,7 +402,7 @@ void __init mptcp_token_init(void)
        }
 }
 
-#if IS_MODULE(CONFIG_MPTCP_KUNIT_TESTS)
+#if IS_MODULE(CONFIG_MPTCP_KUNIT_TEST)
 EXPORT_SYMBOL_GPL(mptcp_token_new_request);
 EXPORT_SYMBOL_GPL(mptcp_token_new_connect);
 EXPORT_SYMBOL_GPL(mptcp_token_accept);