Skip to contentSkip to conversation

drm/panel: st7703: Make jh057n00900_panel_desc static

PATCH Applied Jason Yan 3 participants 3 messages Sep 13, 2020 – Oct 17, 2020

Subsystems (4)
lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH 1/1 drm/panel: st7703: Make jh057n00900_panel_desc static

This eliminates the following sparse warning:

drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol 'jh057n00900_panel_desc' was not declared. Should it be static?

---
 drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-sitronix-st7703.c +1 -1
index c22e7c49e077..7c07a8fc8506 100644
@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = {
 	.height_mm   = 130,
 };
 
-struct st7703_panel_desc jh057n00900_panel_desc = {
+static struct st7703_panel_desc jh057n00900_panel_desc = {
 	.mode = &jh057n00900_mode,
 	.lanes = 4,
 	.mode_flags = MIPI_DSI_MODE_VIDEO |
Signature · 6 lines
2.25.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 16 lines · Jason Yan

This eliminates the following sparse warning:

drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol 'jh057n00900_panel_desc' was not declared. Should it be static?

---
 drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-sitronix-st7703.c +0 -0
index c22e7c49e077..7c07a8fc8506 100644

drivers/gpu/drm/panel/panel-sitronix-st7703.c static const struct drm_display_mode jh057n00900_mode = { · line 156

Quoted 5 lines
drivers/gpu/drm/panel/panel-sitronix-st7703.c +1 -1
@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = {
 	.height_mm   = 130,
 };
 
-struct st7703_panel_desc jh057n00900_panel_desc = {
+static struct st7703_panel_desc jh057n00900_panel_desc = {

Can we even make it static const? With that

Cheers,
-- Guido

Quoted 6 lines
drivers/gpu/drm/panel/panel-sitronix-st7703.c +0 -0
 	.mode = &jh057n00900_mode,
 	.lanes = 4,
 	.mode_flags = MIPI_DSI_MODE_VIDEO |
Signature · 1 line
2.25.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#2 lore raw
In reply to Jason Yan

Hi Jason,

Quoted 7 lines · Jason Yan

This eliminates the following sparse warning:

drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol 'jh057n00900_panel_desc' was not declared. Should it be static?

Thanks, applied to drm-misc-next with Guidos suggestions. The patch will appear in -next in a few weeks.

Sam

Quoted 24 lines
---
 drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-sitronix-st7703.c +1 -1
index c22e7c49e077..7c07a8fc8506 100644
@@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode = {
 	.height_mm   = 130,
 };
 
-struct st7703_panel_desc jh057n00900_panel_desc = {
+static struct st7703_panel_desc jh057n00900_panel_desc = {
 	.mode = &jh057n00900_mode,
 	.lanes = 4,
 	.mode_flags = MIPI_DSI_MODE_VIDEO |
Signature · 6 lines
2.25.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel