Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933556Ab0KQBB0 (ORCPT ); Tue, 16 Nov 2010 20:01:26 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:26190 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932636Ab0KQBBZ (ORCPT ); Tue, 16 Nov 2010 20:01:25 -0500 Date: Tue, 16 Nov 2010 16:59:54 -0800 From: Randy Dunlap To: Linus Torvalds , lenb@kernel.org, linux-acpi@vger.kernel.org Cc: Linux Kernel Mailing List Subject: [PATCH] acpi: fix acpi/video.h error and warning when PM is not enabled Message-Id: <20101116165954.f7d8540b.randy.dunlap@oracle.com> In-Reply-To: References: Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 33 From: Randy Dunlap 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 --- 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 + +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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/