From f7e8a3d4bed65fb0fdb846f53aad7b0a763767c7 Mon Sep 17 00:00:00 2001 From: Jon Medhurst Date: Fri, 18 May 2012 09:06:15 +0100 Subject: [PATCH] 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 --- driver/gator_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/gator_main.c b/driver/gator_main.c index 7d48812..988045f 100644 --- a/driver/gator_main.c +++ b/driver/gator_main.c @@ -48,9 +48,9 @@ static unsigned long gator_protocol_version = 9; #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 -- 2.39.2