]> xenbits.xensource.com Git - unikraft/libs/libgo.git/commitdiff
Remove madvise stub from `glue.c`
authorRazvan Virtan <razvanvirtan@gmail.com>
Wed, 8 Sep 2021 09:31:32 +0000 (12:31 +0300)
committerUnikraft <monkey@unikraft.io>
Sat, 27 Nov 2021 18:31:01 +0000 (18:31 +0000)
Recent unikraft version provides the symbol for the `madvise` syscall.
This commit removes the stub from the glue code, otherwise it will cause
a duplicate error during building.

Signed-off-by: Răzvan Vîrtan <virtanrazvan@gmail.com>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #3

glue.c

diff --git a/glue.c b/glue.c
index bc054af857a1ff91fc058372c732a811f0d2106e..f360418ee6107ca1fcf716c3d15ea1231bbaa7b8 100644 (file)
--- a/glue.c
+++ b/glue.c
@@ -70,11 +70,6 @@ int epoll_wait(int epfd __unused, struct epoll_event *events __unused, int maxev
        return 0;
 }
 
-int madvise(void *addr __unused, size_t length __unused, int advice __unused)
-{
-       return 0;
-}
-
 int mincore(void *addr __unused, size_t length __unused, unsigned char *vec __unused)
 {
        return 0;