Skip to content

Commit bf4dc31

Browse files
finikorgcarlescufi
authored andcommitted
tests: spinlock: Make local functions static
Make local functions static. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent a3959af commit bf4dc31

File tree

1 file changed

+3
-3
lines changed
  • tests/kernel/spinlock/src

1 file changed

+3
-3
lines changed

tests/kernel/spinlock/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ZTEST(spinlock, test_spinlock_basic)
5555
zassert_true(!z_spin_is_locked(&l), "Spinlock failed to unlock");
5656
}
5757

58-
void bounce_once(int id, bool trylock)
58+
static void bounce_once(int id, bool trylock)
5959
{
6060
int ret;
6161
int i, locked;
@@ -106,7 +106,7 @@ void bounce_once(int id, bool trylock)
106106
k_spin_unlock(&bounce_lock, key);
107107
}
108108

109-
void cpu1_fn(void *p1, void *p2, void *p3)
109+
static void cpu1_fn(void *p1, void *p2, void *p3)
110110
{
111111
ARG_UNUSED(p1);
112112
ARG_UNUSED(p2);
@@ -188,7 +188,7 @@ ZTEST(spinlock, test_spinlock_mutual_exclusion)
188188
zassert_true(!z_spin_is_locked(&lock_runtime), "Spinlock failed to unlock");
189189
}
190190

191-
void trylock_fn(void *p1, void *p2, void *p3)
191+
static void trylock_fn(void *p1, void *p2, void *p3)
192192
{
193193
ARG_UNUSED(p1);
194194
ARG_UNUSED(p2);

0 commit comments

Comments
 (0)