From: Jon Medhurst Date: Fri, 18 May 2012 08:06:15 +0000 (+0100) Subject: gator: Revert #error about lack of CONFIG_PERF_EVENTS X-Git-Tag: firefly_0821_release~3680^2~7^2~2^2~5^2~1 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=45030a56ba386e4ea0597b8f167f494b2d4ee259;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/gator/gator_main.c b/drivers/gator/gator_main.c index 9773ae24d6f2..19f51c7cd8ee 100644 --- a/drivers/gator/gator_main.c +++ b/drivers/gator/gator_main.c @@ -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