X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ffb-direct.c;h=1e2dfd89c53f3f0c6d9806192c8ac614f52b3004;hb=b56cd57bdce6b573ac0fc973ba4d16057c1e2ca5;hp=15a4568ad90f6c925ffe57f3412208ab10c3f7b2;hpb=e8060fa4647c5c4ccf07efb91a35f65c543dfc4f;p=libucw.git diff --git a/ucw/fb-direct.c b/ucw/fb-direct.c index 15a4568a..1e2dfd89 100644 --- a/ucw/fb-direct.c +++ b/ucw/fb-direct.c @@ -37,15 +37,6 @@ #include #include -uns fbdir_cheat; - -static struct cf_section fbdir_cf = { - CF_ITEMS { - CF_UNS("Cheat", &fbdir_cheat), - CF_END - } -}; - #define FBDIR_ALIGN 512 enum fbdir_mode { // Current operating mode @@ -68,11 +59,22 @@ struct fb_direct { }; #define FB_DIRECT(f) ((struct fb_direct *)(f)->is_fastbuf) +#ifndef TEST +uns fbdir_cheat; + +static struct cf_section fbdir_cf = { + CF_ITEMS { + CF_UNS("Cheat", &fbdir_cheat), + CF_END + } +}; + static void CONSTRUCTOR fbdir_global_init(void) { cf_declare_section("FBDirect", &fbdir_cf, 0); } +#endif static void fbdir_read_sync(struct fb_direct *F)