From: Dmitry Osipenko Date: Tue, 17 Aug 2021 02:01:53 +0000 (+0300) Subject: gpu/host1x: fence: Make spinlock static X-Git-Tag: howlett/maple/20220722_2~2173^2~3^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a81cf839a064af27349b857fe347e97dd98c12a0;p=users%2Fjedix%2Flinux-maple.git 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 Reviewed-by: Mikko Perttunen Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c index 6941add95d0fa..e49083b0b09e2 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;