[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200702150336.4756-1-weiyongjun1@huawei.com>
Date: Thu, 2 Jul 2020 23:03:36 +0800
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Hulk Robot <hulkci@...wei.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Andrew Morton <akpm@...ux-foundation.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Rikard Falkeborn <rikard.falkeborn@...il.com>,
Randy Dunlap <rd.dunlap@...il.com>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH -next] lib/test_bits: make some functions static
Fix sparse build warnings:
lib/test_bits.c:10:6: warning:
symbol 'genmask_test' was not declared. Should it be static?
lib/test_bits.c:27:6: warning:
symbol 'genmask_ull_test' was not declared. Should it be static?
lib/test_bits.c:42:6: warning:
symbol 'genmask_input_check_test' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
lib/test_bits.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/test_bits.c b/lib/test_bits.c
index 89e0ea83511f..c9368a2314e7 100644
--- a/lib/test_bits.c
+++ b/lib/test_bits.c
@@ -7,7 +7,7 @@
#include <linux/bits.h>
-void genmask_test(struct kunit *test)
+static void genmask_test(struct kunit *test)
{
KUNIT_EXPECT_EQ(test, 1ul, GENMASK(0, 0));
KUNIT_EXPECT_EQ(test, 3ul, GENMASK(1, 0));
@@ -24,7 +24,7 @@ void genmask_test(struct kunit *test)
}
-void genmask_ull_test(struct kunit *test)
+static void genmask_ull_test(struct kunit *test)
{
KUNIT_EXPECT_EQ(test, 1ull, GENMASK_ULL(0, 0));
KUNIT_EXPECT_EQ(test, 3ull, GENMASK_ULL(1, 0));
@@ -39,7 +39,7 @@ void genmask_ull_test(struct kunit *test)
#endif
}
-void genmask_input_check_test(struct kunit *test)
+static void genmask_input_check_test(struct kunit *test)
{
unsigned int x, y;
int z, w;
Powered by blists - more mailing lists