Skip to content

Commit

Permalink
wait: allow to use __wake_up_pollfree() from GPL modules
Browse files Browse the repository at this point in the history
commit ebafbcf7f32d ("UBUNTU: SAUCE: binder: turn into module")
is changing binder to be a module, but __wake_up_pollfree() can only be
used internally by the kernel.

Make __wake_up_pollfree an EXPORT_SYMBOL_GPL so that it can be used by
the binder module.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
arighi authored and xanmod committed Jul 11, 2023
1 parent 7a93146 commit 50ddbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched/wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void __wake_up_pollfree(struct wait_queue_head *wq_head)
/* POLLFREE must have cleared the queue. */
WARN_ON_ONCE(waitqueue_active(wq_head));
}
EXPORT_SYMBOL_GPL(__wake_up_pollfree);

/*
* Note: we use "set_current_state()" _after_ the wait-queue add,
Expand Down

0 comments on commit 50ddbff

Please sign in to comment.