summaryrefslogtreecommitdiff
path: root/i386/i386/db_machdep.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-31 23:39:20 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-31 23:39:20 +0200
commitfc713515896de6dbbbcc61a8be54589bc657aefd (patch)
treed98775524dfe4626cda9ae4b7cf3a17fc3c85007 /i386/i386/db_machdep.h
parent2926f6f92dab25ba19c3e758931e6b3e34db1891 (diff)
Fix build with -fno-common
which will be the default in gcc-10. * device/io_req.h (io_inband_cache): Add extern qualifier. * device/tty.h (tthiwat, ttlowat): Likewise. * i386/i386/db_machdep.h (ddb_regs): Likewise. * kern/cpu_number.h (master_cpu): Likewise. * kern/time_stamp.h (ts_tick_count): Likewise. * linux/src/drivers/scsi/in2000.h (proc_scsi_in2000): Likewise. * device/ds_routines.c (io_inband_cache): New variable. * i386/i386/db_interface.c (ddb_regs): Likewise. * kern/processor.c (master_cpu): Likewise. * kern/time_stamp.c (ts_tick_count): Likewise. * linux/pcmcia-cs/modules/pci_fixup.c (pci_root): Remove variable.
Diffstat (limited to 'i386/i386/db_machdep.h')
-rw-r--r--i386/i386/db_machdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/db_machdep.h b/i386/i386/db_machdep.h
index ae1f9c09..04c874b1 100644
--- a/i386/i386/db_machdep.h
+++ b/i386/i386/db_machdep.h
@@ -41,7 +41,7 @@ typedef vm_offset_t db_addr_t; /* address - unsigned */
typedef long db_expr_t; /* expression - signed */
typedef struct i386_saved_state db_regs_t;
-db_regs_t ddb_regs; /* register state */
+extern db_regs_t ddb_regs; /* register state */
#define DDB_REGS (&ddb_regs)
#define SAVE_DDB_REGS DB_SAVE(db_regs_t, ddb_regs)
#define RESTORE_DDB_REGS DB_RESTORE(ddb_regs)