Skip to content

Commit 762a21f

Browse files
author
Marc Zyngier
committed
irqchip: Fix IRQCHIP_PLATFORM_DRIVER_* compilation by including module.h
The newly introduced IRQCHIP_PLATFORM_DRIVER_* macros expand into module-related macros, but do so without including module.h. Depending on the driver and/or architecture, this happens to work, or not. Unconditionnaly include linux/module.h to sort it out. Fixes: f3b5e60 ("irqchip: Add IRQCHIP_PLATFORM_DRIVER_BEGIN/END and IRQCHIP_MATCH helper macros") Reported-by: kernel test robot <[email protected]> Cc: Saravana Kannan <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent 9d6a5fe commit 762a21f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/irqchip.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#define _LINUX_IRQCHIP_H
1313

1414
#include <linux/acpi.h>
15+
#include <linux/module.h>
1516
#include <linux/of.h>
1617
#include <linux/platform_device.h>
1718

0 commit comments

Comments
 (0)