Skip to content

Commit

Permalink
irqchip: Fix IRQCHIP_PLATFORM_DRIVER_* compilation by including module.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Zyngier committed Jul 27, 2020
1 parent 9d6a5fe commit 762a21f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/irqchip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 762a21f

Please sign in to comment.