]> sourceware.org Git - systemtap.git/commitdiff
PR6923: Make on_each_cpu() autoconf test work on old kernels.
authorJim Keniston <jkenisto@us.ibm.com>
Fri, 17 Oct 2008 21:43:40 +0000 (14:43 -0700)
committerJim Keniston <jkenisto@us.ibm.com>
Fri, 17 Oct 2008 21:43:40 +0000 (14:43 -0700)
ChangeLog
runtime/autoconf-oneachcpu-retry.c

index 9d75a951b5a10615899eb54599342ca991bd9dca..05834b9685342d12d8d298d7dff30a999434628f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-17  Jim Keniston  <jkenisto@us.ibm.com>
+
+       PR6923
+       * runtime/autoconf-oneachcpu-retry.c: Compiles successfully on
+       old kernels.
+
 2008-10-14  Kent Sebastian  <ksebasti@redhat.com>
 
        * cache.cxx (cache_clean): Minor changes, mainly stylistic.
index 304d9842c627bf29ff8b053e4273da51175c00f9..d4745a487b8e0f565cb113e5f382b4a92d9d3478 100644 (file)
@@ -1,7 +1,13 @@
+#include <linux/stddef.h>
+#include <linux/irqflags.h>
 #include <linux/smp.h>
 
+static void no_op(void *arg)
+{
+}
+
 void ____autoconf_func(void)
 {
     /* Older on_each_cpu() calls had a "retry" parameter */
-    (void)on_each_cpu(NULL, NULL, 0, 0);
+    (void)on_each_cpu(no_op, NULL, 0, 0);
 }
This page took 0.035172 seconds and 5 git commands to generate.