gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
authorJon Medhurst <tixy@linaro.org>
Fri, 18 May 2012 08:06:15 +0000 (09:06 +0100)
committerJon Medhurst <tixy@linaro.org>
Mon, 14 Jan 2013 09:13:11 +0000 (09:13 +0000)
Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
driver/gator_main.c

index 9e031c1b0408d945aa6ce7f8751c830fae2c489d..8c35caa8ab5aa8be2c14950804e3b5d4ef4c2150 100644 (file)
@@ -48,9 +48,9 @@ static unsigned long gator_protocol_version = 12;
 
 #if (GATOR_PERF_SUPPORT) && (!(GATOR_PERF_PMU_SUPPORT))
 #ifndef CONFIG_PERF_EVENTS
-#error gator requires the kernel to have CONFIG_PERF_EVENTS defined to support pmu hardware counters
+#warning gator requires the kernel to have CONFIG_PERF_EVENTS defined to support pmu hardware counters
 #elif !defined CONFIG_HW_PERF_EVENTS
-#error gator requires the kernel to have CONFIG_HW_PERF_EVENTS defined to support pmu hardware counters
+#warning gator requires the kernel to have CONFIG_HW_PERF_EVENTS defined to support pmu hardware counters
 #endif
 #endif