fsdev: Fix archs that dont use fsdev
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Fri, 10 Jun 2011 13:29:11 +0000 (15:29 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Fri, 10 Jun 2011 13:29:11 +0000 (15:29 +0200)
Fix provided by: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
fsdev/qemu-fsdev-dummy.c

index 619e163..4e700dd 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include "qemu-fsdev.h"
+#include "qemu-config.h"
 
 int qemu_fsdev_add(QemuOpts *opts)
 {
     return 0;
 }
+
+static void fsdev_register_config(void)
+{
+    qemu_add_opts(&qemu_fsdev_opts);
+    qemu_add_opts(&qemu_virtfs_opts);
+}
+machine_init(fsdev_register_config);