Skip to content

Commit

Permalink
ax25: Don't define trace lock funtions if debug is off
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Dec 17, 2024
1 parent 27d0baa commit c6d26c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gensio_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ i_ax25_base_unlock(struct ax25_base *base)
i_ax25_base_unlock((base)); \
} while(false)

#ifdef DEBUG_STATE
static void
i_ax25_base_trace_lock(struct ax25_base *base)
{
Expand All @@ -876,6 +877,7 @@ i_ax25_base_trace_unlock(struct ax25_base *base)
{
base->o->unlock(base->trace_lock);
}
#endif

static void
i_ax25_base_ref(struct ax25_base *base, int line)
Expand Down

0 comments on commit c6d26c6

Please sign in to comment.