diff options
author | Marc Zyngier <maz@kernel.org> | 2021-10-20 09:33:21 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-10-20 19:33:53 +0100 |
commit | f1985002839af80d6c84e9537834a81fb1364d6e (patch) | |
tree | 95894a3dec47034acfca58a1e9b72aa8216cea27 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9e1ff307c779ce1f0f810c7ecce3d95bbae40896 (diff) |
irqchip: Provide stronger type checking for IRQCHIP_MATCH/IRQCHIP_DECLARE
Both IRQCHIP_DECLARE() and IRQCHIP_MATCH() use an underlying of_device_id()
structure to encode the matching property and the init callback.
However, this callback is stored in as a void * pointer, which obviously
defeat any attempt at stronger type checking.
Work around this by providing a new macro that builds on top of the
__typecheck() primitive, and that can be used to warn when there is
a discrepency between the drivers and core code.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211020104527.3066268-1-maz@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions