From: Brian Norris Date: Mon, 27 Jun 2011 18:27:22 +0000 (-0700) Subject: mkfs.ubifs: use common.h X-Git-Tag: v1.4.7~45 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ede39dff3f0352ae5237af8a47e97f22cd57e97e;p=mtd-utils.git mkfs.ubifs: use common.h To use more unified versioning and to re-use other existing code, switch to common.h. Signed-off-by: Brian Norris Acked-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c index ac3c8d3..c718818 100644 --- a/mkfs.ubifs/mkfs.ubifs.c +++ b/mkfs.ubifs/mkfs.ubifs.c @@ -20,8 +20,11 @@ * Zoltan Sogor */ +#define PROGRAM_NAME "mkfs.ubifs" + #include "mkfs.ubifs.h" #include +#include "common.h" #define PROGRAM_VERSION "1.5" @@ -390,11 +393,6 @@ static long long add_space_overhead(long long size) return size / divisor; } -static inline int is_power_of_2(unsigned long long n) -{ - return (n != 0 && ((n & (n - 1)) == 0)); -} - static int validate_options(void) { int tmp;