gpu/host1x: fence: Make spinlock static
authorDmitry Osipenko <digetx@gmail.com>
Tue, 17 Aug 2021 02:01:53 +0000 (05:01 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Sep 2021 16:06:51 +0000 (18:06 +0200)
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>
drivers/gpu/host1x/fence.c

index 6941add..e49083b 100644 (file)
@@ -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;