From: Adrien Lebre Date: Tue, 19 May 2015 14:52:38 +0000 (+0200) Subject: Fix the implicit declaration issue - Ad(rien) X-Git-Tag: v3_12~731 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/efffaf113f3c24d61baf9f3f9684622aa718ceed?ds=sidebyside Fix the implicit declaration issue - Ad(rien) --- diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index ba20c93bfc..78fbceacac 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -355,6 +355,7 @@ XBT_PUBLIC(void *) simcall_vm_get_pm(smx_host_t vm); XBT_PUBLIC(void) simcall_vm_set_bound(smx_host_t vm, double bound); XBT_PUBLIC(void) simcall_vm_set_affinity(smx_host_t vm, smx_host_t pm, unsigned long mask); XBT_PUBLIC(void) simcall_vm_resume(smx_host_t vm); +XBT_PUBLIC(void) simcall_vm_migratefrom_resumeto(smx_host_t vm, smx_host_t src_pm, smx_host_t dst_pm); XBT_PUBLIC(void) simcall_vm_save(smx_host_t vm); XBT_PUBLIC(void) simcall_vm_restore(smx_host_t vm); XBT_PUBLIC(void) simcall_vm_suspend(smx_host_t vm); diff --git a/src/simix/simcalls.in b/src/simix/simcalls.in index a707338f64..46ac4aa819 100644 --- a/src/simix/simcalls.in +++ b/src/simix/simcalls.in @@ -39,9 +39,12 @@ # Please note that in addition to completing this file with your new simcall, # you should complete the libsmx.c file by adding the corresponding function # (aka. stub). Anyway, if you omit to do it, the invocation of ./simcalls.py will notify you ;) -# Finally, if you want to remove an handler, it is important to remove although +# If you want to remove an handler, it is important to remove although # the corresponding code (simcall_HANDLER_name_of_simcall(xxx) (note that comment the code # is not sufficient, the python script does not check whether the code is commented or not). +# Last but not the least, you should declare the new simix call in +# ./include/simgrid/simix.h (otherwise you will get a warning at the +# compilation time) Func - host_get_by_name (void*, smx_host_t) (name, const char*) Func - host_get_name (const char*) (host, void*, smx_host_t)