[PATCH 6/7] rt_test.h: add numa_available() for !NUMA

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

 



Code will snould not call numa_available(), but compiler will complain
with:

  src/cyclictest/rt_numa.h:263: warning: implicit declaration of function ‘numa_available’

Signed-off-by: Henrik Austad <haustad@xxxxxxxxx>
---
 src/cyclictest/rt_numa.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h
index 06c9420..172d9b2 100644
--- a/src/cyclictest/rt_numa.h
+++ b/src/cyclictest/rt_numa.h
@@ -200,6 +200,7 @@ struct bitmask {
 };
 #define BITS_PER_LONG    (8*sizeof(long))
 
+static inline int numa_available(void) { return 0; }
 static inline void *threadalloc(size_t size, int n) { return malloc(size); }
 static inline void threadfree(void *ptr, size_t s, int n) { free(ptr); }
 static inline void rt_numa_set_numa_run_on_node(int n, int c) { }
-- 
1.9.1

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



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux