Skip to contentSkip to conversation

drm/cma: Fix compile fail due to fomat->format typo

PATCH In review [email protected] 5 participants 8 messages Dec 15, 2016 – Dec 21, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/cma: Fix compile fail due to fomat->format typo

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with fb->format")
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
index aab4465307ed..591f30ebc42a 100644
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer *fb, struct seq_file *m)
 	seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width, fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);
 		drm_gem_cma_describe(fb_cma->obj[i], m);
Signature · 6 lines
2.10.2

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

Hi Ville,

Thank you for the patch.

Quoted 11 lines · On Thursday 15 Dec 2016 16:29:27 [email protected] wrote:

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with

fb->format")

The kbuild test bot caught this pretty fast, but it was too late as the patch was already in a stable branch of a shared tree. Don't you have a git tree covered by the bot that you could push patches to during development ?

Quoted 19 lines
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_fb_cma_helper.c index aab4465307ed..591f30ebc42a 100644

drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer
 *fb, struct seq_file *m) seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width,
 fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);

drm_gem_cma_describe(fb_cma->obj[i], m);

Signature · 8 lines
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 17 lines · Laurent Pinchart

Hi Ville,

Thank you for the patch.

Quoted 11 lines · On Thursday 15 Dec 2016 16:29:27 [email protected] wrote:

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with

fb->format")

Quoted 5 lines

The kbuild test bot caught this pretty fast, but it was too late as the patch was already in a stable branch of a shared tree. Don't you have a git tree covered by the bot that you could push patches to during development ?

I seem to recall getting 0day reports for my github repo at some point in the past. But maybe I imagined it.

Fengguang, assuming 0day has bandwidth for it adding my repo [1] to your list might be nice. I tend to push most non-trivial patch series there when I post the patches.

[1] git://github.com/vsyrjala/linux.git

Quoted 25 lines
Quoted 20 lines
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_fb_cma_helper.c index aab4465307ed..591f30ebc42a 100644

drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer
 *fb, struct seq_file *m) seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width,
 fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);

drm_gem_cma_describe(fb_cma->obj[i], m);

Signature · 3 lines
Regards,

Laurent Pinchart
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

Hi Ville,

Quoted 5 lines

Fengguang, assuming 0day has bandwidth for it adding my repo [1] to your list might be nice. I tend to push most non-trivial patch series there when I post the patches.

[1] git://github.com/vsyrjala/linux.git

Sure, bandwidth will never be a limitation. I just added your tree to the test pool. And sorry for the delay!

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

#4 lore raw
Quoted 10 lines · Fengguang Wu

Hi Ville,

Quoted 5 lines

Fengguang, assuming 0day has bandwidth for it adding my repo [1] to your list might be nice. I tend to push most non-trivial patch series there when I post the patches.

[1] git://github.com/vsyrjala/linux.git

Sure, bandwidth will never be a limitation. I just added your tree to the test pool. And sorry for the delay!

Cool Thanks.

Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw
In reply to Laurent Pinchart
Quoted 11 lines · Laurent Pinchart

Hi Ville,

Thank you for the patch.

Quoted 6 lines · On Thursday 15 Dec 2016 16:29:27 [email protected] wrote:

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Quoted 7 lines
Quoted 5 lines
Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with

fb->format")

Thanks. Pushed to drm-misc-next.

Quoted 29 lines

The kbuild test bot caught this pretty fast, but it was too late as the patch was already in a stable branch of a shared tree. Don't you have a git tree covered by the bot that you could push patches to during development ?

Quoted 19 lines
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_fb_cma_helper.c index aab4465307ed..591f30ebc42a 100644

drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer
 *fb, struct seq_file *m) seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width,
 fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);

drm_gem_cma_describe(fb_cma->obj[i], m);

Signature · 3 lines
Regards,

Laurent Pinchart
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw
In reply to Laurent Pinchart
Quoted 17 lines · Laurent Pinchart

Hi Ville,

Thank you for the patch.

Quoted 11 lines · On Thursday 15 Dec 2016 16:29:27 [email protected] wrote:

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with

fb->format")

Quoted 5 lines

The kbuild test bot caught this pretty fast, but it was too late as the patch was already in a stable branch of a shared tree. Don't you have a git tree covered by the bot that you could push patches to during development ?

It was a randconfig result, so even that doesn't guarantee everything is caught.

BR,
Jani.

Quoted 20 lines
Quoted 20 lines
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_fb_cma_helper.c index aab4465307ed..591f30ebc42a 100644

drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer
 *fb, struct seq_file *m) seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width,
 fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);

drm_gem_cma_describe(fb_cma->obj[i], m);

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw
In reply to Laurent Pinchart
Quoted 17 lines · Laurent Pinchart

Hi Ville,

Thank you for the patch.

Quoted 11 lines · On Thursday 15 Dec 2016 16:29:27 [email protected] wrote:

From: Ville Syrjälä <[email protected]>

Apparently my arm .config had reverted to CMA=n at some point, so I failed to notice that I typoed the code. Fix it up so that the cma helper will compile again.

Cc Laurent Pinchart <[email protected]>
Fixes ca984a998ad3 ("drm/fb_cma_helper: Replace drm_format_info() with

fb->format")

Quoted 5 lines

The kbuild test bot caught this pretty fast, but it was too late as the patch was already in a stable branch of a shared tree. Don't you have a git tree covered by the bot that you could push patches to during development ?

Also there's 3 defconfigs covering drm drivers pretty well, and drm-misc pushers are supposed to always use those before pushing. Would have caught this here, because that's how I noticed it.
-Daniel

Quoted 30 lines
Quoted 20 lines
---
 drivers/gpu/drm/drm_fb_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_fb_cma_helper.c index aab4465307ed..591f30ebc42a 100644

drivers/gpu/drm/drm_fb_cma_helper.c +1 -1
@@ -309,7 +309,7 @@ static void drm_fb_cma_describe(struct drm_framebuffer
 *fb, struct seq_file *m) seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width,
 fb->height,
 			(char *)&fb->format->format);
 
-	for (i = 0; i < fb->fomat->num_planes; i++) {
+	for (i = 0; i < fb->format->num_planes; i++) {
 		seq_printf(m, "   %d: offset=%d pitch=%d, obj: ",
 				i, fb->offsets[i], fb->pitches[i]);

drm_gem_cma_describe(fb_cma->obj[i], m);

Signature · 8 lines
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel