summaryrefslogtreecommitdiff
path: root/include/linux/irqchip.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-07-26 11:12:36 +0100
committerMarc Zyngier <maz@kernel.org>2020-07-27 08:55:04 +0100
commit762a21fd45e056e9ccd2ef5787b4ee0c5af9bec8 (patch)
tree9f9aa2b7ea178ae76d90ea44f620f6adf0b21afa /include/linux/irqchip.h
parent9d6a5fe1757cbbd9323a62bfb8df0a714b757903 (diff)
downloadlwn-762a21fd45e056e9ccd2ef5787b4ee0c5af9bec8.tar.gz
lwn-762a21fd45e056e9ccd2ef5787b4ee0c5af9bec8.zip
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: f3b5e608ed6d ("irqchip: Add IRQCHIP_PLATFORM_DRIVER_BEGIN/END and IRQCHIP_MATCH helper macros") Reported-by: kernel test robot <lkp@intel.com> Cc: Saravana Kannan <saravanak@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/linux/irqchip.h')
-rw-r--r--include/linux/irqchip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h
index 8e754d8b8155..67351aac65ef 100644
--- a/include/linux/irqchip.h
+++ b/include/linux/irqchip.h
@@ -12,6 +12,7 @@
#define _LINUX_IRQCHIP_H
#include <linux/acpi.h>
+#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>