[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] lib/ukmmap: Fix return type and add supress flag for cleaner build.



Fix the return type of mremap and add -Wno-unused-parameter to provide
a cleaner build.

Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx
---
 lib/ukmmap/Makefile.uk | 2 ++
 lib/ukmmap/mmap.c      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/ukmmap/Makefile.uk b/lib/ukmmap/Makefile.uk
index 71ff432..498a2ca 100644
--- a/lib/ukmmap/Makefile.uk
+++ b/lib/ukmmap/Makefile.uk
@@ -1,3 +1,5 @@
 $(eval $(call addlib_s,libukmmap,$(CONFIG_LIBUKMMAP)))
 
 LIBUKMMAP_SRCS-y += $(LIBUKMMAP_BASE)/mmap.c
+
+LIBUKMMAP_CFLAGS-y += -Wno-unused-parameter
diff --git a/lib/ukmmap/mmap.c b/lib/ukmmap/mmap.c
index 52c49e2..e1259da 100644
--- a/lib/ukmmap/mmap.c
+++ b/lib/ukmmap/mmap.c
@@ -168,5 +168,5 @@ int munmap(void *addr, size_t len)
 void *mremap(void *old_address, size_t old_size, size_t new_size,
                int flags, ...)
 {
-       return -1;
+       return 0;
 }
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.