]> mj.ucw.cz Git - libucw.git/commitdiff
Allow direct I/O parametrized fastbufs only with CONFIG_UCW_THREADS
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 29 Oct 2007 12:13:10 +0000 (13:13 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 29 Oct 2007 12:13:10 +0000 (13:13 +0100)
enabled, otherwise die with an error.

lib/fb-param.c

index 3958476948963c9d9ea7ecb0a2b2c1ff48e2251a..854ba78a78632e950ea6a5efe518a16a2d96ccaf 100644 (file)
@@ -27,7 +27,7 @@ fbpar_cf_commit(struct fb_params *p UNUSED)
 {
 #ifndef CONFIG_UCW_THREADS
   if (p->type == FB_DIRECT)
-    p->type = FB_STD;
+    return "Direct I/O is supported only with CONFIG_UCW_THREADS";
 #endif
   return NULL;
 }