LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
To: paulus@samba.org, Andrew Morton <akpm@linux-foundation.org>,
	pavel@suse.cz, rjw@sisk.pl
Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ppc: chipsfb.c build fix for CONFIG_PM
Date: Sun, 29 Jul 2007 19:50:28 +0200	[thread overview]
Message-ID: <200707291950.30261.m.kozlowski@tuxland.pl> (raw)

Hello,

	This patch fixes the following build error on powerpc:

  CC      drivers/video/chipsfb.o
drivers/video/chipsfb.c: In function 'chipsfb_pci_suspend':
drivers/video/chipsfb.c:461: error: 'PM_SUSPEND_MEM' undeclared (first use in this function)
drivers/video/chipsfb.c:461: error: (Each undeclared identifier is reported only once
drivers/video/chipsfb.c:461: error: for each function it appears in.)
make[2]: *** [drivers/video/chipsfb.o] Blad 1
make[1]: *** [drivers/video] Blad 2
make: *** [drivers] Blad 2



Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>

 drivers/video/chipsfb.c | 12751 -> 12804 (+53 bytes)
 drivers/video/chipsfb.o |  -> 112880 ( bytes)

 drivers/video/chipsfb.c |    5 +++++
 1 file changed, 5 insertions(+)

--- linux-2.6.23-rc1-mm1-a/drivers/video/chipsfb.c	2007-07-26 13:07:41.000000000 +0200
+++ linux-2.6.23-rc1-mm1-b/drivers/video/chipsfb.c	2007-07-29 19:34:15.000000000 +0200
@@ -27,6 +27,11 @@
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/console.h>
+
+#ifdef CONFIG_PM
+#include <linux/suspend.h>
+#endif
+
 #include <asm/io.h>

 #ifdef CONFIG_PMAC_BACKLIGHT

             reply	other threads:[~2007-07-29 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 17:50 Mariusz Kozlowski [this message]
2007-07-29 21:33 ` [PATCH] ppc: chipsfb.c build fix for CONFIG_PM Rafael J. Wysocki
2007-07-29 21:31   ` Mariusz Kozlowski

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=200707291950.30261.m.kozlowski@tuxland.pl \
    --to=m.kozlowski@tuxland.pl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=pavel@suse.cz \
    --cc=rjw@sisk.pl \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox