Skip to content

Commit 290d459

Browse files
jsquyresjjhursey
authored andcommitted
timer/linux: remove global variable
This variable is only used in one file, so make it static. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 60ca372 commit 290d459

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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) 2016 Broadcom Limited. All rights reserved.
1919
* $COPYRIGHT$
2020
*
@@ -49,7 +49,7 @@ opal_timer_t (*opal_timer_base_get_cycles)(void) = opal_timer_base_get_cycles_sy
4949
opal_timer_t (*opal_timer_base_get_usec)(void) = opal_timer_base_get_usec_sys_timer;
5050
#endif /* OPAL_HAVE_CLOCK_GETTIME */
5151

52-
opal_timer_t opal_timer_linux_freq = {0};
52+
static opal_timer_t opal_timer_linux_freq = {0};
5353

5454
static int opal_timer_linux_open(void);
5555

0 commit comments

Comments
 (0)