summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-08-17 04:01:53 +0200
committerThierry Reding <treding@nvidia.com>2021-09-16 18:06:51 +0200
commita81cf839a064af27349b857fe347e97dd98c12a0 (patch)
tree06735aaf32ec742ed81c2a0844ee30b82a717274 /drivers/gpu/host1x
parentdrm/tegra: uapi: Fix wrong mapping end address in case of disabled IOMMU (diff)
downloadlinux-a81cf839a064af27349b857fe347e97dd98c12a0.tar.xz
linux-a81cf839a064af27349b857fe347e97dd98c12a0.zip
gpu/host1x: fence: Make spinlock static
The DEFINE_SPINLOCK macro creates a global spinlock symbol that is visible to the whole kernel. This is unintended in the code, fix it. Fixes: 687db2207b1b ("gpu: host1x: Add DMA fence implementation") Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c
index 6941add95d0f..e49083b0b09e 100644
--- a/drivers/gpu/host1x/fence.c
+++ b/drivers/gpu/host1x/fence.c
@@ -15,7 +15,7 @@
#include "intr.h"
#include "syncpt.h"
-DEFINE_SPINLOCK(lock);
+static DEFINE_SPINLOCK(lock);
struct host1x_syncpt_fence {
struct dma_fence base;