X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Firqdesc.h;h=ce7da2b481f36f59ec95e66e87273737a0f1e616;hb=790386da4e4d6c29fec2095348ae6dd26b27fa6e;hp=514d01626c99ccd0385073d0332d039d26acea39;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;p=lttng-modules.git diff --git a/wrapper/irqdesc.h b/wrapper/irqdesc.h index 514d0162..ce7da2b4 100644 --- a/wrapper/irqdesc.h +++ b/wrapper/irqdesc.h @@ -17,4 +17,17 @@ struct irq_desc *wrapper_irq_to_desc(unsigned int irq); +/* + * Canary function to check for 'irq_to_desc()' at compile time. + * + * From 'include/linux/irqnr.h': + * + * extern struct irq_desc *irq_to_desc(unsigned int irq); + */ +static inline +struct irq_desc *__canary__irq_to_desc(unsigned int irq) +{ + return irq_to_desc(irq); +} + #endif /* _LTTNG_WRAPPER_IRQDESC_H */