Skip to contentSkip to conversation

media: ti-vpe: cal: Mark cal_camerarx_media_ops with static keyword

PATCH New Zou Wei 1 participant 1 message Jan 12, 2021 Media (V4L/DVB)

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 media: ti-vpe: cal: Mark cal_camerarx_media_ops with static keyword

Fix the following sparse warning:

drivers/media/platform/ti-vpe/cal-camerarx.c:783:32: warning: symbol 'cal_camerarx_media_ops' was not declared. Should it be static?

---
 drivers/media/platform/ti-vpe/cal-camerarx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/ti-vpe/cal-camerarx.c +1 -1
index 1920f36..dd48017 100644
@@ -780,7 +780,7 @@ static const struct v4l2_subdev_ops cal_camerarx_subdev_ops = {
 	.pad = &cal_camerarx_pad_ops,
 };
 
-struct media_entity_operations cal_camerarx_media_ops = {
+static struct media_entity_operations cal_camerarx_media_ops = {
 	.link_validate = v4l2_subdev_link_validate,
 };
 
Signature · 1 line
2.6.2