aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at/autoconf.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-20 01:19:53 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-24 00:13:56 +0100
commitfed2c08c45bd0e87b90d07fd52011de129be9315 (patch)
tree16c37d4f53d35da8d98ec3f4ff6cbf1fdb90bb89 /i386/i386at/autoconf.c
parentc5134c7759b7a3f0c4ed0b57a1ab8e49666ee4b6 (diff)
downloadgnumach-fed2c08c45bd0e87b90d07fd52011de129be9315.tar.gz
gnumach-fed2c08c45bd0e87b90d07fd52011de129be9315.tar.bz2
gnumach-fed2c08c45bd0e87b90d07fd52011de129be9315.zip
Fix several warnings for -Wmissing-prototypes
* device/ds_routines.c: use static qualifier. * device/subrs.c: delete unused functions. * i386/i386/ast_check.c: include prototypes in kern/ast.h * i386/i386/db_disasm.c: Include prototypes in ddb/db_examine.h * i386/i386/db_interface.h: Define prototype for kdb_kentry. Expose debug methods feep and kd_debug_put. * i386/i386/db_trace.c: delete left over cthreads support, functions are not used. * i386/i386/model_dep.h: Define prototype for c_boot_entry. * i386/i386at/acpi_parse_apic.c: Static qualifiers. * i386/i386at/autoconf.c: Include header file for prototypes and remove dead code. * i386/i386at/autoconf.h: Fix prototype. * i386/i386at/com.c: Add static qualifiers, delete dead code. * i386/i386at/com.c: ditto. * i386/i386at/com.h: Define prototypes for debug functions. * i386/i386at/int_init.c: Include header. * i386/i386at/kd.c: Include header for debug interface. Remove dead kd_cmdreg_read and make xga_getpos static. * i386/i386at/kd_mouse.c: Static qualifiers. * i386/i386at/lpr.c: Dead lprpr. * i386/i386at/model_dep.c: Remove exit function. * kern/mach_clock.c: Include mig prototypes. * kern/mach_clock.h: Remove duplicates of mig prototypes. * kern/machine.c: Use static. * kern/startup.c: slave_main is unused. * kern/thread.h: Define thread_stats that is useful for debugging. * kern/timer.c: Keep db_thread_times since it can be used for debugging. * kern/timer.h: ditto. * linux/dev/glue/misc.c: Use mig header for host_get_time. Message-Id: <Y8oyiecaflCaYhaW@mercury.tail36e24.ts.net>
Diffstat (limited to 'i386/i386at/autoconf.c')
-rw-r--r--i386/i386at/autoconf.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/i386/i386at/autoconf.c b/i386/i386at/autoconf.c
index 8dc0b3ea..ef813d92 100644
--- a/i386/i386at/autoconf.c
+++ b/i386/i386at/autoconf.c
@@ -26,6 +26,7 @@
#include <kern/printf.h>
#include <mach/std_types.h>
+#include <i386at/autoconf.h>
#include <i386/irq.h>
#include <i386/ipl.h>
#include <chips/busses.h>
@@ -140,18 +141,3 @@ void take_dev_irq(
}
}
-
-void take_ctlr_irq(
- const struct bus_ctlr *ctlr)
-{
- int pic = ctlr->sysdep1;
- if (ivect[pic] == intnull) {
- iunit[pic] = ctlr->unit;
- ivect[pic] = ctlr->intr;
- } else {
- printf("The device below will clobber IRQ %d (%p).\n", pic, ivect[pic]);
- printf("You have two devices at the same IRQ. This won't work.\n");
- printf("Reconfigure your hardware and try again.\n");
- while (1);
- }
-}