From: Lars Persson Date: Sun, 11 Mar 2018 14:02:43 +0000 (+0100) Subject: Fix: do not use CONFIG_HOTPLUG_CPU for the new hotplug API X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1759a7340284a418c37d09fb878a4ce5ad63661f;p=deliverable%2Flttng-modules.git Fix: do not use CONFIG_HOTPLUG_CPU for the new hotplug API Kernel configurations without CONFIG_HOTPLUG_CPU throw an unknown symbol error when attempting to insert the lttng-trace module: lttng_tracer: Unknown symbol lttng_hp_prepare (err 0) lttng_tracer: Unknown symbol lttng_hp_online (err 0) This was caused by lttng-events and lttng-context-perf-counter not agreeing on which preprocessor condition that should guard the use of the hotplug API. In fact the API is available also on kernels built without CONFIG_HOTPLUG_CPU. Signed-off-by: Lars Persson Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index 75c3fb17..44618e31 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -2646,7 +2646,7 @@ void lttng_transport_unregister(struct lttng_transport *transport) } EXPORT_SYMBOL_GPL(lttng_transport_unregister); -#if (defined(CONFIG_HOTPLUG_CPU) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) enum cpuhp_state lttng_hp_prepare; enum cpuhp_state lttng_hp_online;