@@ -104,7 +104,6 @@ hwloc_xml_callbacks_reset(void)
104
104
105
105
static void
106
106
hwloc__xml_import_object_attr (struct hwloc_topology * topology ,
107
- struct hwloc_xml_backend_data_s * data __hwloc_attribute_unused ,
108
107
struct hwloc_obj * obj ,
109
108
const char * name , const char * value ,
110
109
hwloc__xml_import_state_t state ,
@@ -435,8 +434,7 @@ hwloc___xml_import_info(char **infonamep, char **infovaluep,
435
434
}
436
435
437
436
static int
438
- hwloc__xml_import_obj_info (struct hwloc_xml_backend_data_s * data __hwloc_attribute_unused ,
439
- hwloc_obj_t obj ,
437
+ hwloc__xml_import_obj_info (hwloc_obj_t obj ,
440
438
hwloc__xml_import_state_t state )
441
439
{
442
440
char * infoname = NULL ;
@@ -457,7 +455,7 @@ hwloc__xml_import_obj_info(struct hwloc_xml_backend_data_s *data __hwloc_attribu
457
455
}
458
456
459
457
static int
460
- hwloc__xml_import_pagetype (hwloc_topology_t topology __hwloc_attribute_unused , struct hwloc_numanode_attr_s * memory ,
458
+ hwloc__xml_import_pagetype (struct hwloc_numanode_attr_s * memory ,
461
459
hwloc__xml_import_state_t state )
462
460
{
463
461
uint64_t size = 0 , count = 0 ;
@@ -496,7 +494,8 @@ hwloc__xml_import_pagetype(hwloc_topology_t topology __hwloc_attribute_unused, s
496
494
}
497
495
498
496
static int
499
- hwloc__xml_import_userdata (hwloc_topology_t topology __hwloc_attribute_unused , hwloc_obj_t obj ,
497
+ hwloc__xml_import_userdata (hwloc_topology_t topology ,
498
+ hwloc_obj_t obj ,
500
499
hwloc__xml_import_state_t state )
501
500
{
502
501
size_t length = 0 ;
@@ -619,7 +618,7 @@ static void hwloc__xml_import_report_outoforder(hwloc_topology_t topology, hwloc
619
618
620
619
static int
621
620
hwloc__xml_import_object (hwloc_topology_t topology ,
622
- struct hwloc_xml_backend_data_s * data __hwloc_attribute_unused ,
621
+ struct hwloc_xml_backend_data_s * data ,
623
622
hwloc_obj_t parent , hwloc_obj_t obj , int * gotignored ,
624
623
hwloc__xml_import_state_t state )
625
624
{
@@ -668,7 +667,7 @@ hwloc__xml_import_object(hwloc_topology_t topology,
668
667
state -> global -> msgprefix , attrname );
669
668
goto error_with_object ;
670
669
}
671
- hwloc__xml_import_object_attr (topology , data , obj , attrname , attrvalue , state , & ignored );
670
+ hwloc__xml_import_object_attr (topology , obj , attrname , attrvalue , state , & ignored );
672
671
}
673
672
}
674
673
@@ -689,9 +688,9 @@ hwloc__xml_import_object(hwloc_topology_t topology,
689
688
690
689
} else if (!strcmp (tag , "page_type" )) {
691
690
if (obj -> type == HWLOC_OBJ_NUMANODE ) {
692
- ret = hwloc__xml_import_pagetype (topology , & obj -> attr -> numanode , & childstate );
691
+ ret = hwloc__xml_import_pagetype (& obj -> attr -> numanode , & childstate );
693
692
} else if (!parent ) {
694
- ret = hwloc__xml_import_pagetype (topology , & topology -> machine_memory , & childstate );
693
+ ret = hwloc__xml_import_pagetype (& topology -> machine_memory , & childstate );
695
694
} else {
696
695
if (hwloc__xml_verbose ())
697
696
fprintf (stderr , "%s: invalid non-NUMAnode object child %s\n" ,
@@ -700,7 +699,7 @@ hwloc__xml_import_object(hwloc_topology_t topology,
700
699
}
701
700
702
701
} else if (!strcmp (tag , "info" )) {
703
- ret = hwloc__xml_import_obj_info (data , obj , & childstate );
702
+ ret = hwloc__xml_import_obj_info (obj , & childstate );
704
703
} else if (!strcmp (tag , "userdata" )) {
705
704
ret = hwloc__xml_import_userdata (topology , obj , & childstate );
706
705
} else {
0 commit comments