Skip to content

Commit

Permalink
drm/tegra: Make gather_bo_ops static
Browse files Browse the repository at this point in the history
The symbol is not used outside of the file, so mark it static.

Fixes the following warning:

./drivers/gpu/drm/tegra/submit.c:136:28: warning: symbol 'gather_bo_ops'
was not declared. Should it be static?

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
ruanjinjie authored and Thierry Reding committed Nov 25, 2022
1 parent a624bd9 commit 2a1a310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tegra/submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void gather_bo_munmap(struct host1x_bo *host_bo, void *addr)
{
}

const struct host1x_bo_ops gather_bo_ops = {
static const struct host1x_bo_ops gather_bo_ops = {
.get = gather_bo_get,
.put = gather_bo_put,
.pin = gather_bo_pin,
Expand Down

0 comments on commit 2a1a310

Please sign in to comment.