]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/imagination: make pvr_fw_trace_init_mask_ops static
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 3 Jul 2026 16:23:38 +0000 (17:23 +0100)
committerAlessio Belle <alessio.belle@imgtec.com>
Thu, 9 Jul 2026 14:07:23 +0000 (15:07 +0100)
The pvr_fw_trace_init_mask_ops is not used outside pvr_fw_trace.c
so make it static to avoid the following sparse warning:

drivers/gpu/drm/imagination/pvr_fw_trace.c:74:31: warning: symbol 'pvr_fw_trace_init_mask_ops' was not declared. Should it be static?

Fixes: c6978643ea1c ("drm/imagination: Validate fw trace group_mask")
Reviewed-by: Alessio Belle <alessio.belle@imgtec.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Link: https://patch.msgid.link/20260703162338.2848039-1-ben.dooks@codethink.co.uk
Signed-off-by: Alessio Belle <alessio.belle@imgtec.com>
drivers/gpu/drm/imagination/pvr_fw_trace.c

index 6bb5baa6c41b73c211839e72e5553d26c7525733..805d9f9bc1dd9e7d710558c146edfd169e767604 100644 (file)
@@ -71,7 +71,7 @@ pvr_fw_trace_init_mask_set(const char *val, const struct kernel_param *kp)
        return 0;
 }
 
-const struct kernel_param_ops pvr_fw_trace_init_mask_ops = {
+static const struct kernel_param_ops pvr_fw_trace_init_mask_ops = {
        .set = pvr_fw_trace_init_mask_set,
        .get = param_get_hexint,
 };