Home
last modified time | relevance | path

Searched hist:"5 a030ce4aed271344087bca723903e10fef59ac9" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/lib/locks/bakery/
H A Dbakery_lock_normal.c5a030ce4aed271344087bca723903e10fef59ac9 Fri Apr 08 17:06:31 UTC 2022 Okash Khawaja <okash@google.com> fix(bakery_lock): add __unused for clang

is_lock_acquired() function is only used in assert() statements, so when
compiling without asserts, e.g. with DEBUG=0, the function is unused.
this is okay when compiling with gcc because the function is marked as
inline but that doesn't work for clang. let's mark this as __unused to
avoid -Wunused-function warning-as-error.

Change-Id: I93f808fd15f715a65d1bd4f7592affb7997c4bad
Signed-off-by: Okash Khawaja <okash@google.com>