public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add small C99 named initializers to fs/bio.c
@ 2003-02-12  2:46 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2003-02-12  2:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

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 =====
--- 1.37/fs/bio.c	Fri Jan 10 23:06:28 2003
+++ edited/fs/bio.c	Tue Feb 11 09:37:41 2003
@@ -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),
 };
-- 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-12  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-12  2:46 [PATCH] Add small C99 named initializers to fs/bio.c Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox