File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2260,11 +2260,13 @@ fixup_sets(hwloc_obj_t obj)
2260
2260
int
2261
2261
hwloc_obj_add_other_obj_sets (hwloc_obj_t dst , hwloc_obj_t src )
2262
2262
{
2263
- #define ADD_OTHER_OBJ_SET (_dst , _src , _set ) \
2264
- if ((_src)->_set) { \
2265
- if (!(_dst)->_set) \
2266
- (_dst)->_set = hwloc_bitmap_alloc(); \
2267
- hwloc_bitmap_or((_dst)->_set, (_dst)->_set, (_src)->_set); \
2263
+ #define ADD_OTHER_OBJ_SET (_dst , _src , _set ) \
2264
+ if ((_src)->_set) { \
2265
+ if (!(_dst)->_set) \
2266
+ (_dst)->_set = hwloc_bitmap_alloc(); \
2267
+ if (!(_dst)->_set \
2268
+ || hwloc_bitmap_or((_dst)->_set, (_dst)->_set, (_src)->_set) < 0) \
2269
+ return -1; \
2268
2270
}
2269
2271
ADD_OTHER_OBJ_SET (dst , src , cpuset );
2270
2272
ADD_OTHER_OBJ_SET (dst , src , complete_cpuset );
Original file line number Diff line number Diff line change @@ -2565,6 +2565,9 @@ HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_group_object(hwloc_topology_t t
2565
2565
* This function is convenient between hwloc_topology_alloc_group_object()
2566
2566
* and hwloc_topology_insert_group_object(). It builds the sets of the new Group
2567
2567
* that will be inserted as a new intermediate parent of several objects.
2568
+ *
2569
+ * \return 0 on success.
2570
+ * \return -1 with errno set to \c ENOMEM if some internal reallocation failed.
2568
2571
*/
2569
2572
HWLOC_DECLSPEC int hwloc_obj_add_other_obj_sets (hwloc_obj_t dst , hwloc_obj_t src );
2570
2573
You can’t perform that action at this time.
0 commit comments