Add small C99 named initializers to fs/bio.c
PATCH 1/1 Add small C99 named initializers to fs/bio.c
Hi.
This trivial patch adds C99 named initializers to the file. Doing so reduces a couple of compile warnings if '-W' is added.
Art Haas
===== fs/bio.c 1.37 vs edited =====
fs/bio.c +1 -1
@@ -46,7 +46,7 @@* unsigned short */ -#define BV (x) { x, "biovec-" #x } +#define BV (x) { .nr_vecs = x, .name = "biovec-" #x }static struct biovec_pool bvec_array[BIOVEC_NR_POOLS ] = {BV (1 ),BV (4 ),BV (16 ),BV (64 ),BV (128 ),BV (BIO_MAX_PAGES ), };
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759