Skip to content

Commit a91f7b9

Browse files
committed
timer/linux: remove global variable
This variable is only used in one file, so make it static. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 290d459)
1 parent f09a7a6 commit a91f7b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opal/mca/timer/linux/timer_linux.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12+
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
1213
* $COPYRIGHT$
1314
*
1415
* Additional copyrights may follow
@@ -22,8 +23,6 @@
2223
#include "opal_config.h"
2324
#include <opal/sys/timer.h>
2425

25-
OPAL_DECLSPEC extern opal_timer_t opal_timer_linux_freq;
26-
2726
OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_cycles)(void);
2827
OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_usec)(void);
2928

opal/mca/timer/linux/timer_linux_component.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* and Technology (RIST). All rights reserved.
1515
* Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights
1616
* reserved.
17-
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
17+
* Copyright (c) 2015-2017 Cisco Systems, Inc. All rights reserved
1818
* Copyright (c) 2017 IBM Corporation. All rights reserved.
19+
* Copyright (c) 2016 Broadcom Limited. All rights reserved.
1920
* $COPYRIGHT$
2021
*
2122
* Additional copyrights may follow
@@ -46,7 +47,7 @@ opal_timer_t (*opal_timer_base_get_cycles)(void) = opal_timer_base_get_cycles_sy
4647
opal_timer_t (*opal_timer_base_get_usec)(void) = opal_timer_base_get_usec_sys_timer;
4748
#endif /* OPAL_HAVE_CLOCK_GETTIME */
4849

49-
opal_timer_t opal_timer_linux_freq = {0};
50+
static opal_timer_t opal_timer_linux_freq = {0};
5051

5152
static int opal_timer_linux_open(void);
5253

0 commit comments

Comments
 (0)