summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-08-17 05:01:53 +0300
committerThierry Reding <treding@nvidia.com>2021-09-16 19:06:51 +0300
commita81cf839a064af27349b857fe347e97dd98c12a0 (patch)
tree06735aaf32ec742ed81c2a0844ee30b82a717274 /drivers/gpu
parent8a44924e1400d75db5c6fdaf199038580df4f79f (diff)
downloadlinux-a81cf839a064af27349b857fe347e97dd98c12a0.tar.xz
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')
-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;