The special_groups[] in nouveau_hwmon_init() is an
array of pointers, so use NULL instead of '0' as
the initialiser.
Fixes the following sparse warning:
drivers/gpu/drm/nouveau/nouveau_hwmon.c:744:29: warning: Using plain integer as
NULL pointer
Signed-off-by: Ben Dooks
---
Cc: Ben Skeggs
Cc
The nvkm_uclient_sclass object is not used outside the file
it is defined in, so make it static to avoid the following
sparse warning:
drivers/gpu/drm/nouveau/nvkm/core/client.c:64:1: warning: symbol
'nvkm_uclient_sclass' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
Cc
?
drivers/gpu/drm/nouveau/nvkm/engine/disp/coregv100.c:43:1: warning: symbol
'gv100_disp_core_mthd_sor' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
Bad divisor in main::vcs_assign: 0
Cc: Ben Skeggs
Cc: David Airlie
Cc: Daniel Vetter
Cc: dri-de...@lists.freedesktop.org
Cc
The tu102_fifo_runlist is not exorted, so make it static
to avoid the following warning:
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c:47:1: warning: symbol
'tu102_fifo_runlist' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/engine/fifo
Do not export gv100_fifo_runlist as it isn't not used
to remove the following morning:
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c:56:1: warning: symbol
'gv100_fifo_runlist' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100
: symbol
'headc57d_olut_set' was not declared. Should it be static?
drivers/gpu/drm/nouveau/dispnv50/headc57d.c:155:1: warning: symbol
'headc57d_olut' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 6 +++---
1 file changed, 3
The gv100_disp_wimm is not declared, so make it static
to avoid the following warning:
drivers/gpu/drm/nouveau/nvkm/engine/disp/wimmgv100.c:39:1: warning: symbol
'gv100_disp_wimm' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/engine/disp
The base917c_format isn't exported, so make it static to
avoid the following warning:
drivers/gpu/drm/nouveau/dispnv50/base917c.c:26:1: warning: symbol
'base917c_format' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/dispnv50/base917c.c | 2 +-
1
/msgqueue_0148cdec.c:241:1: warning: symbol
'msgqueue_0148cdec_func' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
Cc: Ben Skeggs
Cc: David Airlie
Cc: Daniel Vetter
Cc: dri-de...@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: linux-ker...@vger.kernel.org
it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 ++
drivers/gpu/drm/nouveau/nv50_display.h | 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c
b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index b46be8a091e9
?
drivers/gpu/drm/nouveau/nvkm/engine/disp/wndwgv100.c:140:1: warning: symbol
'gv100_disp_wndw' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/engine/disp/wndwgv100.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu
/gf100.c:760:1: warning: symbol
'gf100_gr_fecs_stop_ctxsw' was not declared. Should it be static?
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:2071:1: warning: symbol
'gf100_gr_ctor_fw_legacy' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm
Make wpr_generic_header_dump static to avoid the
following sparse warning:
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: symbol
'wpr_generic_header_dump' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c | 2 +-
1 file changed
The ga102_gsps is not exported, so make it static to avoid the
following sparse warning:
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c:49:1: warning: symbol
'ga102_gsps' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c | 2
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
---
drivers/gpu/drm/nouveau/nvkm/subdev/mc/ga100.c | 2
Make gf100_fifo_nonstall_block as it isn't exported, to
silence the following sparse warning:
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:451:1: warning: symbol
'gf100_fifo_nonstall_block' was not declared. Should it be static?
Signed-off-by: Ben Dooks
---
drivers/gpu/drm/nouveau/nvkm
16 matches
Mail list logo