Re: [git pull request] ACPI patches for 2.6.36.merge
From: Sedat Dilek
Date: Sun Aug 15 2010 - 11:22:19 EST
On Sun, Aug 15, 2010 at 12:41 PM, Sedat Dilek
<sedat.dilek@xxxxxxxxxxxxxx> wrote:
> I pulled in release GIT-branch on top of 2.6.35-git16 (commit
> 5d7cb157025b3b4852f38e6e5e97d06ef12c1d78)
>
> Â $ git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git
> release
>
> Unfortunately, the build breaks:
>
> [ build.log ]
> drivers/acpi/power.c: In function âacpi_power_off_deviceâ:
> drivers/acpi/power.c:252: error: ârefâ undeclared (first use in this function)
> drivers/acpi/power.c:252: error: (Each undeclared identifier is
> reported only once
> drivers/acpi/power.c:252: error: for each function it appears in.)
> make[5]: *** [drivers/acpi/power.o] Error 1
> make[4]: *** [drivers/acpi] Error 2
> make[3]: *** [drivers] Error 2
>
Attached patch is fixing the issue here.
- Sedat -
diff -rdup linux-2.6.orig/drivers/acpi/power.c linux-2.6/drivers/acpi/power.c
--- linux-2.6.orig/drivers/acpi/power.c
+++ linux-2.6/drivers/acpi/power.c
@@ -242,6 +242,7 @@ static int acpi_power_off_device(acpi_ha
acpi_status status = AE_OK;
struct acpi_power_resource *resource = NULL;
struct list_head *node, *next;
+ struct acpi_power_reference *ref;
result = acpi_power_get_context(handle, &resource);
if (result)