gator: 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>
Fri, 11 Oct 2013 11:43:21 +0000 (12:43 +0100)
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>
drivers/gator/gator_main.c

index 7dd70d9eccf92499c450c2601c0b8686ea5aa850..e0db6559669715670fa66305ed0cf9a969ae584c 100644 (file)
@@ -50,9 +50,9 @@ static unsigned long gator_protocol_version = 16;
 
 #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