drm/xe: Make local functions static
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 21 Feb 2023 23:33:43 +0000 (15:33 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:06 +0000 (18:29 -0500)
commit671ca05d7c9766407d7d7e4785d52e4a15d56027
tree8acc5ae50192107d2a76ea6443dd1e60bdfd87bd
parentb47b0ef1ba34e351228b57ce7ba74efc6d7b2c24
drm/xe: Make local functions static

A few static functions not being declared like that break the build with
W=1, like e.g.

cc1: all warnings being treated as errors
make[2]: *** [../scripts/Makefile.build:250: drivers/gpu/drm/xe/xe_gt.o] Error 1
../drivers/gpu/drm/xe/xe_guc.c:240:6: error: no previous prototype for ‘guc_write_params’ [-Werror=missing-prototypes]
  240 | void guc_write_params(struct xe_guc *guc)
      |      ^~~~~~~~~~~~~~~~

Make them static.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_irq.c
drivers/gpu/drm/xe/xe_wait_user_fence.c