+ fix-vm_events_fold_cpu-build-breakage.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     fix vm_events_fold_cpu() build breakage
has been added to the -mm tree.  Its filename is
     fix-vm_events_fold_cpu-build-breakage.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: fix vm_events_fold_cpu() build breakage
From: Magnus Damm <damm@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

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

diff -puN include/linux/vmstat.h~fix-vm_events_fold_cpu-build-breakage include/linux/vmstat.h
--- a/include/linux/vmstat.h~fix-vm_events_fold_cpu-build-breakage
+++ a/include/linux/vmstat.h
@@ -81,7 +81,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
 
_

Patches currently in -mm which might be from damm@xxxxxxxxxxxxx are

fix-vm_events_fold_cpu-build-breakage.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux