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>
Thu, 19 Dec 2013 09:35:29 +0000 (09:35 +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>
drivers/gator/gator_main.c

index 9773ae24d6f2d5345ea0bd0946eb5b32418c0d4b..19f51c7cd8eea7803ab219e7fa3870761740da71 100644 (file)
@@ -55,9 +55,9 @@ static unsigned long gator_protocol_version = PROTOCOL_VERSION;
 
 #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