Detect missing symbols used with kallsyms_lookup at compile time
[lttng-modules.git] / include / wrapper / irqdesc.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
9f36eaed 2 *
886d51a3 3 * wrapper/irqdesc.h
c337ddc2
MD
4 *
5 * wrapper around irq_to_desc. Using KALLSYMS to get its address when
6 * available, else we need to have a kernel that exports this function to GPL
7 * modules.
8 *
886d51a3 9 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
c337ddc2
MD
10 */
11
9f36eaed
MJ
12#ifndef _LTTNG_WRAPPER_IRQDESC_H
13#define _LTTNG_WRAPPER_IRQDESC_H
14
c337ddc2
MD
15#include <linux/interrupt.h>
16#include <linux/irqnr.h>
17
18struct irq_desc *wrapper_irq_to_desc(unsigned int irq);
19
3dfec228
MJ
20/*
21 * Canary function to check for 'irq_to_desc()' at compile time.
22 *
23 * From 'include/linux/irqnr.h':
24 *
25 * extern struct irq_desc *irq_to_desc(unsigned int irq);
26 */
27static inline
28struct irq_desc *__canary__irq_to_desc(unsigned int irq)
29{
30 return irq_to_desc(irq);
31}
32
c337ddc2 33#endif /* _LTTNG_WRAPPER_IRQDESC_H */
This page took 0.038864 seconds and 4 git commands to generate.