From: Andrew Morton Only i386 can do this. Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Cc: Rusty Russell Signed-off-by: Andrew Morton --- net/9p/trans_lg.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN net/9p/trans_lg.c~9p-build-fix net/9p/trans_lg.c --- a/net/9p/trans_lg.c~9p-build-fix +++ a/net/9p/trans_lg.c @@ -254,10 +254,12 @@ static struct p9_trans *p9_lg_create(con struct p9_trans *trans; struct lg_chan *chan = channels; /* don't bother w/match now */ +#ifdef CONFIG_X86_32 if (strcmp(paravirt_ops.name, "lguest") != 0) { printk(KERN_ERR "9p: not running on lguest, no lg possible\n"); return ERR_PTR(-ENODEV); } +#endif trans = kmalloc(sizeof(struct p9_trans), GFP_KERNEL); if (!trans) { _