+2021-05-01 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-sockser.c (dv_sockser_install): Rename to ...
+ (sim_install_dv_sockser): ... this.
+ * dv-sockser.h (dv_sockser_install): Delete.
+ * sim-module.c: Delete dv-sockser.h include.
+ (early_modules): Delete dv_sockser_install.
+
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (LIB_OBJS): Add modules.o.
}
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern MODULE_INIT_FN sim_install_dv_sockser;
+
SIM_RC
-dv_sockser_install (SIM_DESC sd)
+sim_install_dv_sockser (SIM_DESC sd)
{
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
if (sim_add_option_table (sd, NULL, sockser_options) != SIM_RC_OK)
int dv_sockser_write_buffer (SIM_DESC, const unsigned char *, unsigned);
int dv_sockser_read (SIM_DESC);
-SIM_RC dv_sockser_install (SIM_DESC);
-
#else
/* If dv-sockser isn't available, provide stub functions. */
#include "sim-hw.h"
#endif
-#ifdef HAVE_DV_SOCKSER
-/* TODO: Shouldn't have device models here. */
-#include "dv-sockser.h"
-#endif
-
#include "libiberty.h"
#include <stdlib.h>
#if WITH_HW
sim_hw_install,
#endif
-#ifdef HAVE_DV_SOCKSER
- /* TODO: Shouldn't have device models here. */
- dv_sockser_install,
-#endif
};
static int early_modules_len = ARRAY_SIZE (early_modules);