Re: [PATCH] drivers/video: compile fixes for fsl-diu-fb.c
From: Michael Neuling <hidden>
Date: 2012-01-16 03:08:40
Also in:
linuxppc-dev
Subsystem:
framebuffer layer, the rest · Maintainers:
Helge Deller, Linus Torvalds
In message [ref] you wrote:
Michael Neuling wrote:quoted
In message[ref] you wrote:quoted
Michael Neuling wrote:quoted
Fix a bunch of compiler errors and warnings introduced in: commit ddd3d905436b572ebadc09dcf2d12ca5b37020a0 Author: Timur Tabi[off-list ref] drivers/video: fsl-diu-fb: merge all allocated data into one block Signed-off-by: Michael Neuling<redacted> --- Timur: you do compile test your patches, right? :-PI have a script that tests each commit in a set to make sure it compiles> , so that git-bisect isn't broken.May I suggest you actually run the script next time :-PTomorrow, when I get into the office, I'll take a look. But my code has always compiled. Can you give me the output of your compiler?
drivers/video/fsl-diu-fb.c: In function 'fsl_diu_suspend': drivers/video/fsl-diu-fb.c:1435: error: incompatible type for argument 1 of 'disable_lcdc' drivers/video/fsl-diu-fb.c:592: note: expected 'struct fb_info *' but argument is of type 'struct fb_info' drivers/video/fsl-diu-fb.c: In function 'fsl_diu_resume': drivers/video/fsl-diu-fb.c:1445: error: incompatible type for argument 1 of 'enable_lcdc' drivers/video/fsl-diu-fb.c:583: note: expected 'struct fb_info *' but argument is of type 'struct fb_info'
quoted
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index acf292b..3006b2b 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c@@ -1432,7 +1432,7 @@ static int fsl_diu_suspend(struct platform_device *> ofdev, pm_message_t state) struct fsl_diu_data *data; data = dev_get_drvdata(&ofdev->dev); - disable_lcdc(data->fsl_diu_info[0]); + disable_lcdc(&(data->fsl_diu_info[0])); return 0; }@@ -1442,7 +1442,7 @@ static int fsl_diu_resume(struct platform_device *o> fdev) struct fsl_diu_data *data; data = dev_get_drvdata(&ofdev->dev); - enable_lcdc(data->fsl_diu_info[0]); + enable_lcdc(&(data->fsl_diu_info[0]));I prefer this: disable_lcdc(data->fsl_diu_info); Your change makes sense. I don't understand why it compiles on my system. Something strange is going on.
Sure. Mikey From: Michael Neuling <redacted> [PATCH] drivers/video: compile fixes for fsl-diu-fb.c Fix a compiler errors introduced in: commit ddd3d905436b572ebadc09dcf2d12ca5b37020a0 Author: Timur Tabi [off-list ref] drivers/video: fsl-diu-fb: merge all allocated data into one block Signed-off-by: Michael Neuling <redacted>
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c
index acf292b..6af3f16 100644
--- a/drivers/video/fsl-diu-fb.c
+++ b/drivers/video/fsl-diu-fb.c@@ -1432,7 +1432,7 @@ static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state) struct fsl_diu_data *data; data = dev_get_drvdata(&ofdev->dev); - disable_lcdc(data->fsl_diu_info[0]); + disable_lcdc(data->fsl_diu_info); return 0; }
@@ -1442,7 +1442,7 @@ static int fsl_diu_resume(struct platform_device *ofdev) struct fsl_diu_data *data; data = dev_get_drvdata(&ofdev->dev); - enable_lcdc(data->fsl_diu_info[0]); + enable_lcdc(data->fsl_diu_info); return 0; }