diff --git a/kernel/ucount.c b/kernel/ucount.c index 85d7c19b0b80..8c21398f7b4f 100644 --- a/kernel/ucount.c +++ b/kernel/ucount.c @@ -210,7 +210,7 @@ void put_ucounts(struct ucounts *ucounts) } } -static inline bool atomic_long_inc_below(atomic_long_t *v, int u) +static inline bool atomic_long_inc_below(atomic_long_t *v, long u) { long c, old; c = atomic_long_read(v);