All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@lists.linux-foundation.org
Subject: [patch] acpi: fix drivers/acpi/glue.c build error
Date: Wed, 30 Apr 2008 23:00:26 +0200	[thread overview]
Message-ID: <20080430210026.GA24121@elte.hu> (raw)
In-Reply-To: <20080430205615.GA23694@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

> This batch is a proper super-set of the pull request I made a week 
> ago. It will update the files shown below.

another build bug triggered - fixed below.

	Ingo

------------------->
Subject: acpi: fix drivers/acpi/glue.c build error
From: Ingo Molnar <mingo@elte.hu>
Date: Wed Apr 30 22:56:57 CEST 2008

x86.git testing found the following build bug:

  drivers/built-in.o: In function `acpi_rtc_init':
  glue.c:(.init.text+0x16c3): undefined reference to `pnp_bus_type'

this tries to use PNP bus infrastructure even in the !PNP case.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/acpi/glue.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux/drivers/acpi/glue.c
===================================================================
--- linux.orig/drivers/acpi/glue.c
+++ linux/drivers/acpi/glue.c
@@ -299,6 +299,7 @@ static void rtc_wake_off(struct device *
 
 static struct cmos_rtc_board_info rtc_info;
 
+#ifdef CONFIG_PNP
 
 /* PNP devices are registered in a subsys_initcall();
  * ACPI specifies the PNP IDs to use.
@@ -360,4 +361,6 @@ static int __init acpi_rtc_init(void)
 /* do this between RTC subsys_initcall() and rtc_cmos driver_initcall() */
 fs_initcall(acpi_rtc_init);
 
+#endif /* CONFIG_PNP */
+
 #endif

  reply	other threads:[~2008-04-30 21:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-30 18:20 [GIT PATCH] ACPI patches for 2.6.26-rc0 Len Brown
2008-04-30 18:43 ` Andrew Morton
2008-04-30 18:43 ` Andrew Morton
2008-04-30 19:00   ` Rafael J. Wysocki
2008-04-30 19:00   ` Rafael J. Wysocki
2008-04-30 18:55 ` Linus Torvalds
2008-04-30 18:55 ` Linus Torvalds
2008-05-01  0:26   ` Stephen Rothwell
2008-05-01  0:26   ` Stephen Rothwell
2008-05-01 12:16     ` Adrian Bunk
2008-05-01 12:16     ` Adrian Bunk
2008-05-01  6:39   ` Len Brown
2008-05-01  6:39   ` Len Brown
2008-04-30 20:56 ` [patch] acpi: acpi_numa_init() build fix Ingo Molnar
2008-04-30 21:00   ` Ingo Molnar [this message]
2008-04-30 22:17     ` [patch] acpi: fix drivers/acpi/glue.c build error David Brownell
2008-04-30 22:17     ` [linux-pm] " David Brownell
2008-04-30 22:17       ` David Brownell
2008-04-30 21:00   ` Ingo Molnar
2008-04-30 20:56 ` [patch] acpi: acpi_numa_init() build fix Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080430210026.GA24121@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.