54 lines
1.6 KiB
Diff
54 lines
1.6 KiB
Diff
commit 1e4e44054a4f092e356611aa207039b2ad357be5
|
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
Date: Wed Jan 8 08:19:34 2020 +0100
|
|
|
|
Add missing extern keywords
|
|
|
|
Starting from the upcoming GCC release 10, the default of -fcommon option will change to -fno-common:
|
|
In C, global variables with multiple tentative definitions will result in linker errors.
|
|
Global variable accesses are also more efficient on various targets.
|
|
|
|
This fixes compilations errors with -fno-common enabled
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
|
diff --git ptl_am/ptl_fwd.h ptl_am/ptl_fwd.h
|
|
index e1bd064f82a6..1d0fec4073ab 100644
|
|
--- ptl_am/ptl_fwd.h
|
|
+++ ptl_am/ptl_fwd.h
|
|
@@ -57,7 +57,7 @@
|
|
#define _PTL_FWD_AMSH_H
|
|
|
|
/* Symbol in am ptl */
|
|
-struct ptl_ctl_init psmi_ptl_amsh;
|
|
+extern struct ptl_ctl_init psmi_ptl_amsh;
|
|
|
|
extern int psmi_shm_mq_rv_thresh;
|
|
|
|
diff --git ptl_ips/ptl_fwd.h ptl_ips/ptl_fwd.h
|
|
index 3702fbae7509..b7742609f3ab 100644
|
|
--- ptl_ips/ptl_fwd.h
|
|
+++ ptl_ips/ptl_fwd.h
|
|
@@ -61,7 +61,7 @@ typedef struct ips_epaddr ips_epaddr_t;
|
|
typedef struct ips_msgctl ips_msgctl_t;
|
|
|
|
/* Symbol in ips ptl */
|
|
-struct ptl_ctl_init psmi_ptl_ips;
|
|
+extern struct ptl_ctl_init psmi_ptl_ips;
|
|
|
|
-struct ptl_ctl_rcvthread psmi_ptl_ips_rcvthread;
|
|
+extern struct ptl_ctl_rcvthread psmi_ptl_ips_rcvthread;
|
|
#endif /* _PTL_FWD_IPS_H */
|
|
diff --git ptl_self/ptl_fwd.h ptl_self/ptl_fwd.h
|
|
index 77ee7f95f782..7ee6b732a3ff 100644
|
|
--- ptl_self/ptl_fwd.h
|
|
+++ ptl_self/ptl_fwd.h
|
|
@@ -57,6 +57,6 @@
|
|
#define _PTL_FWD_SELF_H
|
|
|
|
/* Symbol in am ptl */
|
|
-struct ptl_ctl_init psmi_ptl_self;
|
|
+extern struct ptl_ctl_init psmi_ptl_self;
|
|
|
|
#endif
|