Detect missing symbols used with kallsyms_lookup at compile time
[lttng-modules.git] / wrapper / irqdesc.h
index 514d01626c99ccd0385073d0332d039d26acea39..ce7da2b481f36f59ec95e66e87273737a0f1e616 100644 (file)
 
 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 */
This page took 0.027127 seconds and 4 git commands to generate.