aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-05-18 09:06:15 +0100
committerJon Medhurst <tixy@linaro.org>2013-01-14 10:13:39 +0000
commitdddcc546b1989491763ac1bdf4cd23406a06f3cf (patch)
tree3b92c1a70c2b134201d5097a2b5d237ac1f5d054
parentaa5094c1f352fd3fe28e156ebbe3d363574b48a2 (diff)
gator: Revert #error about lack of CONFIG_PERF_EVENTS
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>
-rw-r--r--drivers/gator/gator_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gator/gator_main.c b/drivers/gator/gator_main.c
index 9e031c1b040..8c35caa8ab5 100644
--- a/drivers/gator/gator_main.c
+++ b/drivers/gator/gator_main.c
@@ -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