diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 881db606780406f4b9fb9c1330856c2090d06c3c..560f20bdb3aaa7a6649dbcd57c1e945da1ea7eb1 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -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 */