diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-21 15:33:43 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:29:06 -0500 |
commit | 671ca05d7c9766407d7d7e4785d52e4a15d56027 (patch) | |
tree | 8acc5ae50192107d2a76ea6443dd1e60bdfd87bd /drivers/gpu/drm/xe/xe_irq.c | |
parent | b47b0ef1ba34e351228b57ce7ba74efc6d7b2c24 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_irq.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_irq.c b/drivers/gpu/drm/xe/xe_irq.c index a2caa20f2fb3..ab703f1c8b58 100644 --- a/drivers/gpu/drm/xe/xe_irq.c +++ b/drivers/gpu/drm/xe/xe_irq.c @@ -448,7 +448,7 @@ static void dg1_irq_reset(struct xe_gt *gt) GEN3_IRQ_RESET(gt, GEN8_PCU_); } -void xe_irq_reset(struct xe_device *xe) +static void xe_irq_reset(struct xe_device *xe) { struct xe_gt *gt; u8 id; |