staging: lustre: libcfs.h: remove IS_PO2 and __is_po2
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Tue, 17 Nov 2015 20:07:07 +0000 (22:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:40:18 +0000 (15:40 -0800)
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have
been replaced by is_power_of_2

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs.h

index 049f6a9a638b0fe20e630ed866a33f3991347e43..0d8a91ee5ffc42af6be0b0ece349144c32261dc9 100644 (file)
 
 #include "curproc.h"
 
-static inline int __is_po2(unsigned long long val)
-{
-       return !(val & (val - 1));
-}
-
-#define IS_PO2(val) __is_po2((unsigned long long)(val))
-
 #define LOWEST_BIT_SET(x)       ((x) & ~((x) - 1))
 
 /*