C++ compatibility for some kernel-space headers

This commit is contained in:
Sebastian Huber
2019-02-18 10:04:53 +01:00
parent 0dbc4e269b
commit c352e6979d
3 changed files with 13 additions and 13 deletions

View File

@@ -152,7 +152,7 @@ ck_stack_batch_pop_upmc(struct ck_stack *target)
{
struct ck_stack_entry *entry;
entry = ck_pr_fas_ptr(&target->head, NULL);
entry = (struct ck_stack_entry *)ck_pr_fas_ptr(&target->head, NULL);
ck_pr_fence_load();
return entry;
}
@@ -276,7 +276,7 @@ ck_stack_push_mpnc(struct ck_stack *target, struct ck_stack_entry *entry)
entry->next = NULL;
ck_pr_fence_store_atomic();
stack = ck_pr_fas_ptr(&target->head, entry);
stack = (struct ck_stack_entry *)ck_pr_fas_ptr(&target->head, entry);
ck_pr_store_ptr(&entry->next, stack);
ck_pr_fence_store();