summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/fallbacks/add_unless
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/fallbacks/add_unless')
-rwxr-xr-xscripts/atomic/fallbacks/add_unless2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/atomic/fallbacks/add_unless b/scripts/atomic/fallbacks/add_unless
index 792533885fbf..daf87a04c850 100755
--- a/scripts/atomic/fallbacks/add_unless
+++ b/scripts/atomic/fallbacks/add_unless
@@ -8,7 +8,7 @@ cat << EOF
* Atomically adds @a to @v, if @v was not already @u.
* Returns true if the addition was done.
*/
-static inline bool
+static __always_inline bool
${atomic}_add_unless(${atomic}_t *v, ${int} a, ${int} u)
{
return ${atomic}_fetch_add_unless(v, a, u) != u;