From fc713515896de6dbbbcc61a8be54589bc657aefd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 31 Mar 2020 23:39:20 +0200 Subject: 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. --- device/io_req.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device/io_req.h') diff --git a/device/io_req.h b/device/io_req.h index 1ad46801..b80b3dde 100644 --- a/device/io_req.h +++ b/device/io_req.h @@ -137,6 +137,6 @@ void iodone(io_req_t); (kfree((vm_offset_t)(ior), sizeof(struct io_req))) -struct kmem_cache io_inband_cache; /* for inband reads */ +extern struct kmem_cache io_inband_cache; /* for inband reads */ #endif /* _IO_REQ_ */ -- cgit v1.2.3