Hi! Compilation of bcache-tools (branch: dev) fails due to: > make -j3 > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache.o bcache.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-assemble.o bcache-assemble.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-device.o bcache-device.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-format.o bcache-format.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-fs.o bcache-fs.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-run.o bcache-run.c > bcache-fs.c:32:23: warning: unused variable 'fs' [-Wunused-variable] > struct bcache_handle fs = bcache_fs_open(args[0]); > ^ > bcache-fs.c:48:23: warning: unused variable 'fs' [-Wunused-variable] > struct bcache_handle fs = bcache_fs_open(args[0]); > ^ > bcache-fs.c:15:25: warning: unused function 'fill_fs' [-Wunused-function] > static struct bcache_fs fill_fs(struct bcache_handle fs) > ^ > 3 warnings generated. > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o bcache-key.o bcache-key.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o libbcache.o libbcache.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o crypto.o crypto.c > clang -O2 -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 -I. `pkg-config --cflags "blkid uuid libnih"` -c -o util.o util.c > libbcache.c:79:39: error: function definition is not allowed here > u64 min_size(unsigned bucket_size) { > ^ > libbcache.c:84:18: warning: implicit declaration of function 'min_size' is invalid in C99 [-Wimplicit-function-declaration] > if (i->size < min_size(block_size)) > ^ > libbcache.c:85:105: warning: format specifies type 'unsigned long long' but the argument has type 'int' [-Wformat] > do { fprintf(stderr, "cannot format %s, too small (%llu sectors, min %llu)" "\n", i->path, i->size, min_size(block_size)); exit(1); } while (0); > ~~~~ ^~~~~~~~~~~~~~~~~~~~ > %d > 2 warnings and 1 error generated. > make: *** [<builtin>: libbcache.o] Error 1 Regards, Marcin -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html