Whamcloud - gitweb
LU-6245 libcfs: Remove kp30.h
[fs/lustre-release.git] / libcfs / include / libcfs / libcfs_private.h
index b4aeac6..47197b3 100644 (file)
@@ -434,10 +434,6 @@ do {                                                            \
 /* logical equivalence */
 #define equi(a, b) (!!(a) == !!(b))
 
-#ifndef CFS_CURRENT_TIME
-# define CFS_CURRENT_TIME time(0)
-#endif
-
 /* what used to be in portals_lib.h */
 #ifndef MIN
 # define MIN(a,b) (((a)<(b)) ? (a): (b))
@@ -483,19 +479,6 @@ static inline size_t cfs_round_strlen(char *fset)
        return cfs_size_round(strlen(fset) + 1);
 }
 
-/* roundup \a val to power2 */
-static inline size_t cfs_power2_roundup(size_t val)
-{
-       if (val != LOWEST_BIT_SET(val)) { /* not a power of 2 already */
-               do {
-                       val &= ~LOWEST_BIT_SET(val);
-               } while (val != LOWEST_BIT_SET(val));
-               /* ...and round up */
-               val <<= 1;
-       }
-       return val;
-}
-
 #define LOGL(var,len,ptr)                                       \
 do {                                                            \
         if (var)                                                \
@@ -514,7 +497,4 @@ extern struct cfs_psdev_ops libcfs_psdev_ops;
 extern struct miscdevice libcfs_dev;
 extern struct cfs_wi_sched *cfs_sched_rehash;
 
-extern int insert_proc(void);
-extern void remove_proc(void);
-
 #endif