]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: Fix IRQCHIP_PLATFORM_DRIVER_* compilation by including module.h
authorMarc Zyngier <maz@kernel.org>
Sun, 26 Jul 2020 10:12:36 +0000 (11:12 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 27 Jul 2020 07:55:04 +0000 (08:55 +0100)
commita9d84ac29fdc1dfbd74a4934e4c701a6b41f6c0b
tree9f9aa2b7ea178ae76d90ea44f620f6adf0b21afa
parentbd6fb19c0d02170edbfc75bd28b8f54ba957cf42
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>
include/linux/irqchip.h