Skip to content
Snippets Groups Projects
Commit 6b2cd611 authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch HEAD

b=16949
i=yury, deen

Add labs(x) as a inline function because absent since 2.6.22.
parent f3b34344
No related merge requests found
......@@ -608,5 +608,19 @@ static inline int ll_crypto_hmac(struct crypto_tfm *tfm,
#define cpu_to_node(cpu) 0
#endif
#ifndef abs
static inline int abs(int x)
{
return (x < 0) ? -x : x;
}
#endif
#ifndef labs
static inline long labs(long x)
{
return (x < 0) ? -x : x;
}
#endif
#endif /* __KERNEL__ */
#endif /* _COMPAT25_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment