diff options
author | Toomas Soome <tsoome@me.com> | 2020-05-26 16:58:26 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2021-03-15 21:08:28 +0200 |
commit | 974fceab66899bd599db3037669647d0e261838d (patch) | |
tree | 17df14ce62a6bc99600af2557bf1a811cccbf343 | |
parent | 24537d3ef87e4452da693fc3143ef18a1a0f3cac (diff) | |
download | illumos-joyent-974fceab66899bd599db3037669647d0e261838d.tar.gz |
13618 mdb: cast between incompatible function types
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/cmd/mdb/intel/mdb/mdb_bhyve.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/usr/src/cmd/mdb/intel/mdb/mdb_bhyve.c b/usr/src/cmd/mdb/intel/mdb/mdb_bhyve.c index ff24c502ed..df4517d955 100644 --- a/usr/src/cmd/mdb/intel/mdb/mdb_bhyve.c +++ b/usr/src/cmd/mdb/intel/mdb/mdb_bhyve.c @@ -1408,15 +1408,15 @@ bhyve_putareg(mdb_tgt_t *tgt, mdb_tgt_tid_t tid, const char *rname, static const mdb_tgt_ops_t bhyve_ops = { .t_setflags = bhyve_setflags, - .t_setcontext = (int (*)()) mdb_tgt_notsup, + .t_setcontext = (int (*)())(uintptr_t)mdb_tgt_notsup, .t_activate = bhyve_activate, .t_deactivate = bhyve_deactivate, - .t_periodic = (void (*)()) mdb_tgt_nop, + .t_periodic = (void (*)())(uintptr_t)mdb_tgt_nop, .t_destroy = bhyve_destroy, .t_name = bhyve_name, .t_isa = bhyve_isa, - .t_platform = (const char *(*)()) mdb_conf_platform, - .t_uname = (int (*)()) mdb_tgt_notsup, + .t_platform = (const char *(*)())mdb_conf_platform, + .t_uname = (int (*)())(uintptr_t)mdb_tgt_notsup, .t_dmodel = bhyve_dmodel, .t_aread = bhyve_aread, .t_awrite = bhyve_awrite, @@ -1431,33 +1431,33 @@ static const mdb_tgt_ops_t bhyve_ops = { .t_vtop = bhyve_vtop, .t_lookup_by_name = bhyve_lookup_by_name, .t_lookup_by_addr = bhyve_lookup_by_addr, - .t_symbol_iter = (int (*)()) mdb_tgt_notsup, - .t_mapping_iter = (int (*)()) mdb_tgt_notsup, - .t_object_iter = (int (*)()) mdb_tgt_notsup, - .t_addr_to_map = (const mdb_map_t *(*)()) mdb_tgt_null, - .t_name_to_map = (const mdb_map_t *(*)()) mdb_tgt_null, - .t_addr_to_ctf = (struct ctf_file *(*)()) mdb_tgt_null, - .t_name_to_ctf = (struct ctf_file *(*)()) mdb_tgt_null, + .t_symbol_iter = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_mapping_iter = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_object_iter = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_addr_to_map = (const mdb_map_t *(*)())mdb_tgt_null, + .t_name_to_map = (const mdb_map_t *(*)())mdb_tgt_null, + .t_addr_to_ctf = (struct ctf_file *(*)())mdb_tgt_null, + .t_name_to_ctf = (struct ctf_file *(*)())mdb_tgt_null, .t_status = bhyve_status, - .t_run = (int (*)()) mdb_tgt_notsup, + .t_run = (int (*)())(uintptr_t)mdb_tgt_notsup, .t_step = bhyve_step, - .t_step_out = (int (*)()) mdb_tgt_notsup, - .t_next = (int (*)()) mdb_tgt_notsup, + .t_step_out = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_next = (int (*)())(uintptr_t)mdb_tgt_notsup, .t_cont = bhyve_cont, - .t_signal = (int (*)()) mdb_tgt_notsup, - .t_add_vbrkpt = (int (*)()) mdb_tgt_null, - .t_add_sbrkpt = (int (*)()) mdb_tgt_null, - .t_add_pwapt = (int (*)()) mdb_tgt_null, - .t_add_vwapt = (int (*)()) mdb_tgt_null, - .t_add_iowapt = (int (*)()) mdb_tgt_null, - .t_add_sysenter = (int (*)()) mdb_tgt_null, - .t_add_sysexit = (int (*)()) mdb_tgt_null, - .t_add_signal = (int (*)()) mdb_tgt_null, - .t_add_fault = (int (*)()) mdb_tgt_null, + .t_signal = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_add_vbrkpt = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_sbrkpt = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_pwapt = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_vwapt = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_iowapt = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_sysenter = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_sysexit = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_signal = (int (*)())(uintptr_t)mdb_tgt_null, + .t_add_fault = (int (*)())(uintptr_t)mdb_tgt_null, .t_getareg = bhyve_getareg, .t_putareg = bhyve_putareg, - .t_stack_iter = (int (*)()) mdb_tgt_notsup, - .t_auxv = (int (*)()) mdb_tgt_notsup + .t_stack_iter = (int (*)())(uintptr_t)mdb_tgt_notsup, + .t_auxv = (int (*)())(uintptr_t)mdb_tgt_notsup }; int |