Skip to content

Commit d313c0b

Browse files
author
Mika Penttilä
committed
gpu/host1x: fence: Make spinlock static
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2154295 Upstream Status: v5.15-rc4 commit a81cf83 Author: Dmitry Osipenko <digetx@gmail.com> AuthorDate: Tue Aug 17 05:01:53 2021 +0300 Commit: Thierry Reding <treding@nvidia.com> CommitDate: Thu Sep 16 18:06:51 2021 +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: 687db22 ("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> Signed-off-by: Mika Penttilä <mpenttil@redhat.com>
1 parent 86da935 commit d313c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/host1x/fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "intr.h"
1616
#include "syncpt.h"
1717

18-
DEFINE_SPINLOCK(lock);
18+
static DEFINE_SPINLOCK(lock);
1919

2020
struct host1x_syncpt_fence {
2121
struct dma_fence base;

0 commit comments

Comments
 (0)