[PATCH 00/14] drm: Fix a bunch of sparse warnings

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Mon Sep 19 13:33:41 UTC 2016


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

I got a bit fed up from the sparse noise during a full build,
so I tried to shut some of it up. Mostly missing statics or function
declarations.

I didn't touch the main offender (radeon/amdgpu) since there was enough
of this stuff in the other drivers as well. Nouveau was pretty bad too,
but it was spread around mode so I didn't realize how much there was
until I was already half way through. If I had, I probably wouldn't
have bothered. There's still a bunch of warnings left in many of the
drivers (__mmio type of stuff is probably responsible for most of it).

Entire series avaialable here:
git://github.com/vsyrjala/linux.git drm_sparse_warn

Ville Syrjälä (14):
  drm/atomic-helper: Fix sparse warnings
  drm/blend: Fix sparse warnings
  drm/fb-helper: Fix sparse warnings
  drm/arm: Fix sparse warnings
  drm/ast: Fix sparse warnings
  drm/bochs: Fix sparse warnings
  drm/cirrus: Fix sparse warnings
  drm/mgag200: Fix sparse warnings
  drm/msm: Fix sparse warnings
  drm/nouveau: Fix sparse warnings
  drm/rockchip: Fix sparse warnings
  drm/sti: Fix sparse warnings
  drm/sun4i: Fix sparse warnings
  drm/tilcdc: Fix sparse warnings

 drivers/gpu/drm/arm/malidp_planes.c                |  6 ++--
 drivers/gpu/drm/ast/ast_drv.c                      |  2 +-
 drivers/gpu/drm/ast/ast_ttm.c                      |  2 +-
 drivers/gpu/drm/bochs/bochs_kms.c                  |  2 +-
 drivers/gpu/drm/bochs/bochs_mm.c                   |  2 +-
 drivers/gpu/drm/cirrus/cirrus_drv.c                |  2 +-
 drivers/gpu/drm/cirrus/cirrus_ttm.c                |  2 +-
 drivers/gpu/drm/drm_atomic_helper.c                |  2 +-
 drivers/gpu/drm/drm_blend.c                        |  2 +-
 drivers/gpu/drm/drm_crtc_helper_internal.h         |  7 ++++
 drivers/gpu/drm/drm_fb_helper.c                    |  2 ++
 drivers/gpu/drm/mgag200/mgag200_drv.c              |  2 +-
 drivers/gpu/drm/mgag200/mgag200_ttm.c              |  2 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c   |  2 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c          |  2 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c            | 12 +++----
 drivers/gpu/drm/msm/msm_fb.c                       |  2 +-
 drivers/gpu/drm/nouveau/dispnv04/overlay.c         |  2 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c        |  2 +-
 drivers/gpu/drm/nouveau/nouveau_display.c          |  2 +-
 drivers/gpu/drm/nouveau/nv10_fence.c               |  2 +-
 drivers/gpu/drm/nouveau/nvif/client.c              |  2 +-
 drivers/gpu/drm/nouveau/nvkm/core/firmware.c       |  1 +
 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c  |  2 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/channv50.c    |  8 ++---
 drivers/gpu/drm/nouveau/nvkm/engine/disp/coreg94.c |  2 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/coregp104.c   |  2 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c    |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c  |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c |  4 +--
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c  |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c  |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c   |  1 +
 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c     |  4 +--
 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c     |  4 +--
 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c     |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c      |  4 +--
 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.c     |  2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c     |  4 +--
 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c    |  2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c  |  8 ++---
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c     |  1 +
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c     |  1 +
 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c   |  2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c      |  2 +-
 .../gpu/drm/nouveau/nvkm/subdev/iccsense/base.c    |  2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c |  4 +--
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/g84.c       |  2 +-
 .../gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c    |  2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c   |  4 +--
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c   |  4 +--
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c    |  1 +
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c        |  4 +--
 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c      |  1 +
 drivers/gpu/drm/sti/sti_compositor.c               |  4 +--
 drivers/gpu/drm/sti/sti_cursor.c                   |  2 +-
 drivers/gpu/drm/sti/sti_drv.c                      |  2 +-
 drivers/gpu/drm/sti/sti_dvo.c                      |  3 +-
 drivers/gpu/drm/sti/sti_gdp.c                      |  6 ++--
 drivers/gpu/drm/sti/sti_hqvdp.c                    |  7 ++--
 drivers/gpu/drm/sti/sti_mixer.c                    |  2 +-
 drivers/gpu/drm/sti/sti_tvout.c                    |  1 +
 drivers/gpu/drm/sti/sti_vtac.c                     |  2 ++
 drivers/gpu/drm/sti/sti_vtg.c                      |  3 +-
 drivers/gpu/drm/sun4i/sun4i_tv.c                   | 38 +++++++++++-----------
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                |  4 +--
 drivers/gpu/drm/tilcdc/tilcdc_panel.c              |  3 +-
 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c             |  3 +-
 include/drm/drm_fb_helper.h                        |  5 ---
 69 files changed, 127 insertions(+), 109 deletions(-)

-- 
2.7.4



More information about the dri-devel mailing list