Skip to contentSkip to conversation

drm/imagination: make pvr_fw_trace_init_mask_ops static

PATCH Applied Ben Dooks 2 participants 4 messages Jul 3 – Jul 9

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH v2 1/1 drm/imagination: make pvr_fw_trace_init_mask_ops static

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")?

---
v2:
- added fixes tag

---
 drivers/gpu/drm/imagination/pvr_fw_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/imagination/pvr_fw_trace.c +1 -1
index 6bb5baa6c41b..805d9f9bc1dd 100644
@@ -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,
 };
Signature · 1 line
2.37.2.352.g3c44437643
maintainer
#1 lore raw

Hi Ben,

Quoted 6 lines · Ben Dooks

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")?

nit: the "?" at the end

Quoted 1 line

nit: Revied-by -> Reviewed-by

I can fixup these manually after applying the patch, if you are fine with it, unless you prefer to send a v3.

Planning to apply this patch to drm-misc-fixes by the end of this week.

Thanks,
Alessio

Quoted 21 lines

---
v2:
- added fixes tag

---
 drivers/gpu/drm/imagination/pvr_fw_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/imagination/pvr_fw_trace.c +1 -1
index 6bb5baa6c41b..805d9f9bc1dd 100644
@@ -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,
 };
author
#2 lore raw
Quoted 12 lines · Alessio Belle

Hi Ben,

Quoted 6 lines · Ben Dooks

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")?

nit: the "?" at the end

Quoted 8 lines
Quoted 1 line

nit: Revied-by -> Reviewed-by

I can fixup these manually after applying the patch, if you are fine with it, unless you prefer to send a v3.

Planning to apply this patch to drm-misc-fixes by the end of this week.

Please go ahead and fixup the issues before applying.

Signature · 4 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html
maintainer Applied
#3 lore raw
In reply to Ben Dooks
Quoted 6 lines · Ben Dooks

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?

Applied, thanks!

[1/1] drm/imagination: make pvr_fw_trace_init_mask_ops static

      commit: c804aadc4ce3dcb34d6f2ecc9a159c148210805a

Best regards,

Signature · 1 line
Alessio Belle <[email protected]>