From 93ba29c5b5adae918545be75c67bc00614a7eef8 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Mon, 6 Mar 2017 15:55:18 -0800 Subject: gpu: nvgpu: channel_from_inst_ptr renamed and made non static required to support t19x mmu fault Change-Id: Ibe621d924717696a359d7e2065beb6501a9f9b5e Signed-off-by: Seema Khowala Reviewed-on: http://git-master/r/1315928 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index a2846d2a..de1c82dc 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -1051,10 +1051,10 @@ int gk20a_init_fifo_support(struct gk20a *g) } /* return with a reference to the channel, caller must put it back */ -static struct channel_gk20a * -channel_from_inst_ptr(struct fifo_gk20a *f, u64 inst_ptr) +struct channel_gk20a * +gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr) { - struct gk20a *g = f->g; + struct fifo_gk20a *f = &g->fifo; unsigned int ci; if (unlikely(!f->channel)) return NULL; @@ -1531,7 +1531,7 @@ static bool gk20a_fifo_handle_mmu_fault( } } else { /* read channel based on instruction pointer */ - ch = channel_from_inst_ptr(&g->fifo, f.inst_ptr); + ch = gk20a_refch_from_inst_ptr(g, f.inst_ptr); referenced_channel = ch; } -- cgit v1.2.2