Skip to content

Commit eb49ec3

Browse files
committed
core: hwloc_connect_children/levels() can be static
Signed-off-by: Brice Goglin <[email protected]>
1 parent 9d0d8bb commit eb49ec3

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

hwloc/topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,7 @@ static void hwloc_set_group_depth(hwloc_topology_t topology)
20662066
*
20672067
* Can be called several times, so may have to update the array.
20682068
*/
2069-
void
2069+
static void
20702070
hwloc_connect_children(hwloc_obj_t parent)
20712071
{
20722072
unsigned n, oldn = parent->arity;
@@ -2333,7 +2333,7 @@ hwloc_connect_io_misc_levels(hwloc_topology_t topology)
23332333
* Do the remaining work that hwloc_connect_children() did not do earlier.
23342334
* Requires object arity and children list to be properly initialized (by hwloc_connect_children()).
23352335
*/
2336-
int
2336+
static int
23372337
hwloc_connect_levels(hwloc_topology_t topology)
23382338
{
23392339
unsigned l, i=0;

include/hwloc/rename.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,6 @@ extern "C" {
621621
#define hwloc_get_sysctlbyname HWLOC_NAME(get_sysctlbyname)
622622
#define hwloc_get_sysctl HWLOC_NAME(get_sysctl)
623623
#define hwloc_fallback_nbprocessors HWLOC_NAME(fallback_nbprocessors)
624-
#define hwloc_connect_children HWLOC_NAME(connect_children)
625-
#define hwloc_connect_levels HWLOC_NAME(connect_levels)
626624

627625
#define hwloc__object_cpusets_compare_first HWLOC_NAME(_object_cpusets_compare_first)
628626
#define hwloc__reorder_children HWLOC_NAME(_reorder_children)

include/private/private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ extern void hwloc_setup_pu_level(struct hwloc_topology *topology, unsigned nb_pu
152152
extern int hwloc_get_sysctlbyname(const char *name, int64_t *n);
153153
extern int hwloc_get_sysctl(int name[], unsigned namelen, int *n);
154154
extern unsigned hwloc_fallback_nbprocessors(struct hwloc_topology *topology);
155-
extern void hwloc_connect_children(hwloc_obj_t obj);
156-
extern int hwloc_connect_levels(hwloc_topology_t topology);
157155

158156
extern int hwloc__object_cpusets_compare_first(hwloc_obj_t obj1, hwloc_obj_t obj2);
159157
extern void hwloc__reorder_children(hwloc_obj_t parent);

0 commit comments

Comments
 (0)