* [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled
[not found] <AANLkTimYevUOSxDm+nGq_ctPEFp_E2zJR7rNGvUi2fWY@mail.gmail.com>
@ 2010-11-17 0:59 ` Randy Dunlap
2010-11-17 1:29 ` Zhang Rui
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2010-11-17 0:59 UTC (permalink / raw)
To: Linus Torvalds, lenb, linux-acpi; +Cc: Linux Kernel Mailing List
From: Randy Dunlap <randy.dunlap@oracle.com>
When CONFIG_PM is not enabled, acpi/video.h causes a build error.
Also fix a longstanding warning.
include/acpi/video.h:22: warning: 'struct acpi_device' declared inside parameter list
include/acpi/video.h:22: warning: its scope is only this definition or declaration, which is probably not what you want
include/acpi/video.h: In function 'acpi_video_get_edid':
include/acpi/video.h:24: error: 'ENODEV' undeclared (first use in this function)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/acpi/video.h | 4 ++++
1 file changed, 4 insertions(+)
--- lnx-2637-rc2.orig/include/acpi/video.h
+++ lnx-2637-rc2/include/acpi/video.h
@@ -1,6 +1,10 @@
#ifndef __ACPI_VIDEO_H
#define __ACPI_VIDEO_H
+#include <linux/errno.h>
+
+struct acpi_device;
+
#define ACPI_VIDEO_DISPLAY_CRT 1
#define ACPI_VIDEO_DISPLAY_TV 2
#define ACPI_VIDEO_DISPLAY_DVI 3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled
2010-11-17 0:59 ` [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled Randy Dunlap
@ 2010-11-17 1:29 ` Zhang Rui
2010-11-17 16:06 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Zhang Rui @ 2010-11-17 1:29 UTC (permalink / raw)
To: Randy Dunlap
Cc: Linus Torvalds, lenb@kernel.org, linux-acpi@vger.kernel.org,
Linux Kernel Mailing List
On Wed, 2010-11-17 at 08:59 +0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> When CONFIG_PM is not enabled, acpi/video.h causes a build error.
> Also fix a longstanding warning.
>
> include/acpi/video.h:22: warning: 'struct acpi_device' declared inside parameter list
> include/acpi/video.h:22: warning: its scope is only this definition or declaration, which is probably not what you want
> include/acpi/video.h: In function 'acpi_video_get_edid':
> include/acpi/video.h:24: error: 'ENODEV' undeclared (first use in this function)
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
we already have a patch at
http://marc.info/?l=linux-kernel&m=128369371631933&w=2
Not sure if Len has applied it or not.
Anyway, thanks for the patch. :)
-rui
> ---
> include/acpi/video.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> --- lnx-2637-rc2.orig/include/acpi/video.h
> +++ lnx-2637-rc2/include/acpi/video.h
> @@ -1,6 +1,10 @@
> #ifndef __ACPI_VIDEO_H
> #define __ACPI_VIDEO_H
>
> +#include <linux/errno.h>
> +
> +struct acpi_device;
> +
> #define ACPI_VIDEO_DISPLAY_CRT 1
> #define ACPI_VIDEO_DISPLAY_TV 2
> #define ACPI_VIDEO_DISPLAY_DVI 3
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled
2010-11-17 1:29 ` Zhang Rui
@ 2010-11-17 16:06 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2010-11-17 16:06 UTC (permalink / raw)
To: Zhang Rui
Cc: Linus Torvalds, lenb@kernel.org, linux-acpi@vger.kernel.org,
Linux Kernel Mailing List
On 11/16/10 17:29, Zhang Rui wrote:
> On Wed, 2010-11-17 at 08:59 +0800, Randy Dunlap wrote:
>> From: Randy Dunlap <randy.dunlap@oracle.com>
>>
>> When CONFIG_PM is not enabled, acpi/video.h causes a build error.
>> Also fix a longstanding warning.
>>
>> include/acpi/video.h:22: warning: 'struct acpi_device' declared inside parameter list
>> include/acpi/video.h:22: warning: its scope is only this definition or declaration, which is probably not what you want
>> include/acpi/video.h: In function 'acpi_video_get_edid':
>> include/acpi/video.h:24: error: 'ENODEV' undeclared (first use in this function)
>>
>> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
>
> we already have a patch at
> http://marc.info/?l=linux-kernel&m=128369371631933&w=2
> Not sure if Len has applied it or not.
> Anyway, thanks for the patch. :)
Good. Thanks for the info.
> -rui
>> ---
>> include/acpi/video.h | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> --- lnx-2637-rc2.orig/include/acpi/video.h
>> +++ lnx-2637-rc2/include/acpi/video.h
>> @@ -1,6 +1,10 @@
>> #ifndef __ACPI_VIDEO_H
>> #define __ACPI_VIDEO_H
>>
>> +#include <linux/errno.h>
>> +
>> +struct acpi_device;
>> +
>> #define ACPI_VIDEO_DISPLAY_CRT 1
>> #define ACPI_VIDEO_DISPLAY_TV 2
>> #define ACPI_VIDEO_DISPLAY_DVI 3
>> --
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-17 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTimYevUOSxDm+nGq_ctPEFp_E2zJR7rNGvUi2fWY@mail.gmail.com>
2010-11-17 0:59 ` [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled Randy Dunlap
2010-11-17 1:29 ` Zhang Rui
2010-11-17 16:06 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).