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

Branch b1_6

b=16949
i=yury, deen

Add labs(x) as a inline function because absent since 2.6.22.
parent 4dbc4f99
No related branches found
No related tags found
No related merge requests found
......@@ -590,5 +590,19 @@ int ll_unregister_blkdev(unsigned int dev, const char *name)
vfs_rename(old,old_dir,new,new_dir)
#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