From 1f19391ee8b8a70dd93db0558a15a4c9402ebe1f Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 14 Dec 2016 10:07:15 -0600 Subject: [PATCH] Improve relayfs autoconf test for F24. * runtime/linux/autoconf-relay_buf-per_cpu_ptr.c: Improve test so that it properly fails on Fedora 24's 4.8.10-200.fc24.x86_64 kernel. --- runtime/linux/autoconf-relay_buf-per_cpu_ptr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/linux/autoconf-relay_buf-per_cpu_ptr.c b/runtime/linux/autoconf-relay_buf-per_cpu_ptr.c index d2af8d32d..c105b3301 100644 --- a/runtime/linux/autoconf-relay_buf-per_cpu_ptr.c +++ b/runtime/linux/autoconf-relay_buf-per_cpu_ptr.c @@ -14,14 +14,13 @@ // // changed the way the 'rchan->buf' field works. It just to be a // regular array, and is now a per_cpu_ptr-style array. -// -// If we can call per_cpu_ptr() on rchan->buf, we'll assume that we've -// got the new style relay channel buffer pointers. #include #include +#include struct rchan_buf *relay_buf_test(struct rchan *chan, unsigned int cpu) { + BUILD_BUG_ON(sizeof(chan->buf) != sizeof(struct rchan_buf **)); return *per_cpu_ptr(chan->buf, cpu); } -- 2.43.5