X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Firqdesc.c;h=47eda8995d5fb5095d87b832cbb13b38ac099ef2;hb=f98d5dee4bdae4d6f185e63a6daebbf2acb4fe06;hp=fd3f0c148d9bade00ce920ef6dffe19c3f69c6bf;hpb=779be05dd3bef66dbe82b372a33b37da332ff093;p=lttng-modules.git diff --git a/wrapper/irqdesc.c b/wrapper/irqdesc.c index fd3f0c14..47eda899 100644 --- a/wrapper/irqdesc.c +++ b/wrapper/irqdesc.c @@ -3,7 +3,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. + * modules. This export was added to the 3.4 kernels. * * Copyright (C) 2011-2012 Mathieu Desnoyers * @@ -22,7 +22,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef CONFIG_KALLSYMS +#include + +#if (defined(CONFIG_KALLSYMS) \ + && (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))) #include #include