Skip to content

Commit ac9aa21

Browse files
Ben Dookskarolherbst
authored andcommitted
drm/nouveau/mc/ga100: make ga100_mc_device static
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 <[email protected]> Signed-off-by: Karol Herbst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c2ba16c commit ac9aa21

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/mc

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask)
4747
return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask;
4848
}
4949

50-
const struct nvkm_mc_device_func
50+
static const struct nvkm_mc_device_func
5151
ga100_mc_device = {
5252
.enabled = ga100_mc_device_enabled,
5353
.enable = ga100_mc_device_enable,

0 commit comments

Comments
 (0)