From: Razvan Virtan Date: Wed, 8 Sep 2021 09:31:32 +0000 (+0300) Subject: Remove madvise stub from `glue.c` X-Git-Tag: RELEASE-0.6~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ca2b5d12305ea666fe96c0dd78b3ca5d4cfdb0db;p=unikraft%2Flibs%2Flibgo.git Remove madvise stub from `glue.c` 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 Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Pull-Request: #3 --- diff --git a/glue.c b/glue.c index bc054af..f360418 100644 --- 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;