public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <damm@opensource.se>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Magnus Damm <damm@opensource.se>, Christoph Lameter <clameter@sgi.com>
Subject: [PATCH 2.6.20-rc1] fix vm_events_fold_cpu() build breakage
Date: Fri, 15 Dec 2006 12:06:10 +0900	[thread overview]
Message-ID: <20061215030610.24898.8839.sendpatchset@localhost> (raw)

fix vm_events_fold_cpu() build breakage

2.6.20-rc1 does not build properly if CONFIG_VM_EVENT_COUNTERS is set
and CONFIG_HOTPLUG is unset:

  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
mm/built-in.o: In function `page_alloc_cpu_notify':
page_alloc.c:(.text+0x56eb): undefined reference to `vm_events_fold_cpu'
make: *** [.tmp_vmlinux1] Error 1

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
---

 Applies on top of linux-2.6.20-rc1.

 include/linux/vmstat.h |    4 ++++
 1 file changed, 4 insertions(+)

--- 0001/include/linux/vmstat.h
+++ 0003/include/linux/vmstat.h	2006-12-15 11:46:23.000000000 +0900
@@ -73,7 +73,11 @@ static inline void count_vm_events(enum 
 }
 
 extern void all_vm_events(unsigned long *);
+#ifdef CONFIG_HOTPLUG
 extern void vm_events_fold_cpu(int cpu);
+#else
+#define vm_events_fold_cpu(x)	do { } while (0)
+#endif
 
 #else
 

             reply	other threads:[~2006-12-15  3:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15  3:06 Magnus Damm [this message]
2006-12-16 18:35 ` [PATCH 2.6.20-rc1] fix vm_events_fold_cpu() build breakage Christoph Lameter
2006-12-17 15:10   ` Jean Delvare

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=20061215030610.24898.8839.sendpatchset@localhost \
    --to=damm@opensource.se \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox