Skip to contentSkip to conversation

drivers/block/nbd.c compile fix

PATCH New Ingo van Lil 1 participant 1 message Jun 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/block/nbd.c compile fix

Hello everybody,

the Network Block Device driver doesn't compile if NDEBUG is defined.

Cheers,
Ingo

---

drivers/block/nbd.c renamed from drivers/block/nbd.c.orig +1 -1
@@ -82,9 +82,9 @@
 #define DBG_RX          0x0200
 #define DBG_TX          0x0400
 static unsigned int debugflags;
-static unsigned int nbds_max = 16;
 #endif /* NDEBUG */
 
+static unsigned int nbds_max = 16;
 static struct nbd_device nbd_dev[MAX_NBD];
 
 /*