RDMA/rxe: Make rxe_do_task static
The subroutine rxe_do_task() is only called in rxe_task.c. This patch makes it static and renames it do_task(). Link: https://lore.kernel.org/r/20221021200118.2163-6-rpearsonhpe@gmail.com Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com> Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
dccb23f6c3
commit
dcef28528c
@ -24,7 +24,7 @@ int __rxe_do_task(struct rxe_task *task)
|
||||
* a second caller finds the task already running
|
||||
* but looks just after the last call to func
|
||||
*/
|
||||
void rxe_do_task(struct tasklet_struct *t)
|
||||
static void do_task(struct tasklet_struct *t)
|
||||
{
|
||||
int cont;
|
||||
int ret;
|
||||
@ -96,7 +96,7 @@ int rxe_init_task(struct rxe_task *task, void *arg, int (*func)(void *))
|
||||
task->func = func;
|
||||
task->destroyed = false;
|
||||
|
||||
tasklet_setup(&task->tasklet, rxe_do_task);
|
||||
tasklet_setup(&task->tasklet, do_task);
|
||||
|
||||
task->state = TASK_STATE_START;
|
||||
spin_lock_init(&task->state_lock);
|
||||
@ -128,7 +128,7 @@ void rxe_run_task(struct rxe_task *task)
|
||||
if (task->destroyed)
|
||||
return;
|
||||
|
||||
rxe_do_task(&task->tasklet);
|
||||
do_task(&task->tasklet);
|
||||
}
|
||||
|
||||
void rxe_sched_task(struct rxe_task *task)
|
||||
|
@ -44,14 +44,6 @@ void rxe_cleanup_task(struct rxe_task *task);
|
||||
*/
|
||||
int __rxe_do_task(struct rxe_task *task);
|
||||
|
||||
/*
|
||||
* common function called by any of the main tasklets
|
||||
* If there is any chance that there is additional
|
||||
* work to do someone must reschedule the task before
|
||||
* leaving
|
||||
*/
|
||||
void rxe_do_task(struct tasklet_struct *t);
|
||||
|
||||
void rxe_run_task(struct rxe_task *task);
|
||||
|
||||
void rxe_sched_task(struct rxe_task *task);
|
||||
|
Loading…
x
Reference in New Issue
Block a user