]> err.no Git - linux-2.6/commitdiff
lguest: remove pv_info dependency
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Fri, 18 Jan 2008 00:32:50 +0000 (22:32 -0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Jan 2008 11:50:03 +0000 (22:50 +1100)
Currently, lguest module can't be compiled without the PARAVIRT flag being
on. This is a fake dependency, since the module itself shouldn't need any
paravirt override. Reason for that is the reference to pv_info structure
in initial loading tests.

This patch removes it in favour of a more generic error message.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/core.c

index cb4c67025d52ae5c6c4826a855695ec09dcf29e6..f10abc8d7635eb24c68e5d424fb2edf7943a91b5 100644 (file)
@@ -253,7 +253,7 @@ static int __init init(void)
 
        /* Lguest can't run under Xen, VMI or itself.  It does Tricky Stuff. */
        if (paravirt_enabled()) {
-               printk("lguest is afraid of %s\n", pv_info.name);
+               printk("lguest is afraid of being a guest\n");
                return -EPERM;
        }