Whamcloud - gitweb
LU-3963 cleanup: C89 and build cleanups
[fs/lustre-release.git] / lustre / obdclass / lprocfs_status.c
index 9956ada..9527bb2 100644 (file)
@@ -3281,7 +3281,7 @@ void lprocfs_oh_tally_log2(struct obd_histogram *oh, unsigned int value)
        unsigned int val = 0;
 
        if (likely(value != 0))
-               val = min(fls(value - 1), OBD_HIST_MAX);
+               val = min_t(unsigned int, __fls(value - 1), OBD_HIST_MAX);
 
        lprocfs_oh_tally(oh, val);
 }