xref: /linux/scripts/atomic/fallbacks/inc_not_zero (revision 14d72d4b6f0e88b5f683c1a5b7a876a55055852d)
1cat <<EOF
2static __always_inline bool
3arch_${atomic}_inc_not_zero(${atomic}_t *v)
4{
5	return arch_${atomic}_add_unless(v, 1, 0);
6}
7EOF
8