aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-05-18 09:06:15 +0100
committerJon Medhurst <tixy@linaro.org>2013-10-10 16:36:37 +0100
commit059ea10130a6ed13a33a56b72a10e3ae3657e03d (patch)
treead07ab75dd030d15352ecad2e3f6897aadeed377
parent689bdf8057462a77535c1b6396410e264ae11e6b (diff)
gator-driver: 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--driver/gator_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/gator_main.c b/driver/gator_main.c
index 7dd70d9..e0db655 100644
--- a/driver/gator_main.c
+++ b/driver/gator_main.c
@@ -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