From: Antti Kantee Date: Thu, 30 Apr 2015 12:44:41 +0000 (+0000) Subject: make sure rumprun_platform_rumpuser_init() returns success X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=805a29fc25072d921fc6fb3a23aa54c4811e9b5b;p=people%2Fliuw%2Frumprun.git make sure rumprun_platform_rumpuser_init() returns success --- diff --git a/platform/baremetal/undefs.c b/platform/baremetal/undefs.c index 82aaee6..c362ed6 100644 --- a/platform/baremetal/undefs.c +++ b/platform/baremetal/undefs.c @@ -23,6 +23,7 @@ * SUCH DAMAGE. */ +#include #include /* @@ -33,12 +34,13 @@ int name(void); int name(void) \ {bmk_printf("unimplemented: " #name "\n"); for (;;);} -#define REALNOTHING(name) \ - int name(void); int name(void) {return 1;} +#define REALNOTHING(name, rv) \ + int name(void); int name(void) {return rv;} NOTHING(rumpuser_open) NOTHING(rumpuser_close) -REALNOTHING(rumpuser_getfileinfo) NOTHING(rumpuser_bio) -REALNOTHING(rumprun_platform_rumpuser_init); +REALNOTHING(rumpuser_getfileinfo, BMK_ENOSYS) + +REALNOTHING(rumprun_platform_rumpuser_init, 0);