Skip to content

Commit

Permalink
tests: spinlock: Make local functions static
Browse files Browse the repository at this point in the history
Make local functions static.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information
finikorg authored and carlescufi committed Sep 28, 2023
1 parent a3959af commit bf4dc31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/kernel/spinlock/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ZTEST(spinlock, test_spinlock_basic)
zassert_true(!z_spin_is_locked(&l), "Spinlock failed to unlock");
}

void bounce_once(int id, bool trylock)
static void bounce_once(int id, bool trylock)
{
int ret;
int i, locked;
Expand Down Expand Up @@ -106,7 +106,7 @@ void bounce_once(int id, bool trylock)
k_spin_unlock(&bounce_lock, key);
}

void cpu1_fn(void *p1, void *p2, void *p3)
static void cpu1_fn(void *p1, void *p2, void *p3)
{
ARG_UNUSED(p1);
ARG_UNUSED(p2);
Expand Down Expand Up @@ -188,7 +188,7 @@ ZTEST(spinlock, test_spinlock_mutual_exclusion)
zassert_true(!z_spin_is_locked(&lock_runtime), "Spinlock failed to unlock");
}

void trylock_fn(void *p1, void *p2, void *p3)
static void trylock_fn(void *p1, void *p2, void *p3)
{
ARG_UNUSED(p1);
ARG_UNUSED(p2);
Expand Down

0 comments on commit bf4dc31

Please sign in to comment.