X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Firqdesc.c;h=d8858c439054390f3e4036e8e82d89475e93348f;hb=e12ef7eee8f880aa30eeb1998428282f1414bea5;hp=02c44c8001abe3273fe54d9681ed6a91dbc386ad;hpb=c2d5363fee624e18bc26938e209b4b5bdd8799cd;p=lttng-modules.git diff --git a/wrapper/irqdesc.c b/wrapper/irqdesc.c index 02c44c80..d8858c43 100644 --- a/wrapper/irqdesc.c +++ b/wrapper/irqdesc.c @@ -4,7 +4,7 @@ * * wrapper around irq_to_desc. Using KALLSYMS to get its address when * available, else we need to have a kernel that exports this function to GPL - * modules. This export was added to the 3.4 kernels. + * modules. This export was added to the 3.4 kernels and removed in 5.11. * * Copyright (C) 2011-2012 Mathieu Desnoyers */ @@ -12,8 +12,9 @@ #include #include -#if (defined(CONFIG_KALLSYMS) \ - && (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))) +#if (defined(CONFIG_KALLSYMS) && \ + ((LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) || \ + (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)))) #include #include