← Commit list

9c2708ebf

Denys Vlasenko
Denys Vlasenko
2009-10-17
FAILED Duration: 38s

Subject

mkfs_ext2: code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mkfs_ext2.c+3 -3
@@ -59,16 +59,16 @@ struct ext2_dir {
char name3[12];
};
-static inline int int_log2(int arg)
+static unsigned int_log2(unsigned arg)
{
- int r = 0;
+ unsigned r = 0;
while ((arg >>= 1) != 0)
r++;
return r;
}
// taken from mkfs_minix.c. libbb candidate?
-static ALWAYS_INLINE unsigned div_roundup(uint32_t size, uint32_t n)
+static unsigned div_roundup(uint32_t size, uint32_t n)
{
return (size + n-1) / n;
}