projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ba16c
)
drm/nouveau/mc/ga100: make ga100_mc_device static
author
Ben Dooks
<ben-linux@fluff.org>
Thu, 29 Dec 2022 15:52:49 +0000
(15:52 +0000)
committer
Karol Herbst
<kherbst@redhat.com>
Tue, 11 Apr 2023 15:03:03 +0000
(17:03 +0200)
Make ga100_mc_device static as it isn't exported, to
fix the following sparse warning:
drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c:51:1: warning: symbol 'ga100_mc_device' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20221229155249.669436-1-ben-linux@fluff.org
drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c
index 1e2eabec1a76cd94d0fab2ddebefa565d1792627..5d28d30d09d5c512d8bcef50f7300ff75d9b57aa 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c
@@
-47,7
+47,7
@@
ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask)
return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask;
}
-const struct nvkm_mc_device_func
+
static
const struct nvkm_mc_device_func
ga100_mc_device = {
.enabled = ga100_mc_device_enabled,
.enable = ga100_mc_device_enable,