changeset 20243:afda877311c6 default tip

13424 unix: multiply-defined symbols Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
author Toomas Soome <tsoome@me.com>
date Tue, 12 May 2020 18:50:52 +0300
parents 1267e1e320be
children
files usr/src/uts/i86pc/os/startup.c usr/src/uts/i86pc/sys/cpupm_throttle.h usr/src/uts/i86pc/sys/machsystm.h
diffstat 3 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/i86pc/os/startup.c	Thu Jan 14 14:15:19 2021 +0000
+++ b/usr/src/uts/i86pc/os/startup.c	Tue May 12 18:50:52 2020 +0300
@@ -235,8 +235,8 @@
 pgcnt_t physmem = PHYSMEM;
 pgcnt_t obp_pages;	/* Memory used by PROM for its text and data */
 
-char *kobj_file_buf;
-int kobj_file_bufsize;	/* set in /etc/system */
+extern char *kobj_file_buf;
+extern int kobj_file_bufsize;	/* set in /etc/system */
 
 /* Global variables for MP support. Used in mp_startup */
 caddr_t	rm_platter_va = 0;
@@ -321,7 +321,7 @@
 
 struct seg *segkp = &kpseg;	/* Pageable kernel virtual memory segment */
 
-struct seg kvseg_core;		/* Segment used for the core heap */
+extern struct seg kvseg_core;		/* Segment used for the core heap */
 struct seg kpmseg;		/* Segment used for physical mapping */
 struct seg *segkpm = &kpmseg;	/* 64bit kernel physical mapping segment */
 
--- a/usr/src/uts/i86pc/sys/cpupm_throttle.h	Thu Jan 14 14:15:19 2021 +0000
+++ b/usr/src/uts/i86pc/sys/cpupm_throttle.h	Tue May 12 18:50:52 2020 +0300
@@ -32,7 +32,7 @@
 extern "C" {
 #endif
 
-cpupm_state_ops_t cpupm_throttle_ops;
+extern cpupm_state_ops_t cpupm_throttle_ops;
 
 extern void cpupm_throttle_manage_notification(void *);
 
--- a/usr/src/uts/i86pc/sys/machsystm.h	Thu Jan 14 14:15:19 2021 +0000
+++ b/usr/src/uts/i86pc/sys/machsystm.h	Tue May 12 18:50:52 2020 +0300
@@ -135,10 +135,10 @@
 /*
  * Dispatcher hooks.
  */
-void    (*idle_cpu)();
-void    (*non_deep_idle_cpu)();
-void    (*disp_enq_thread)(cpu_t *, int);
-void    (*non_deep_idle_disp_enq_thread)(cpu_t *, int);
+extern void    (*idle_cpu)();
+extern void    (*non_deep_idle_cpu)();
+extern void    (*disp_enq_thread)(cpu_t *, int);
+extern void    (*non_deep_idle_disp_enq_thread)(cpu_t *, int);
 
 #ifndef __xpv
 extern unsigned int microdata;