diff mbox series

drivers/perf: hisi: Add missing include of linux/module.h

Message ID 1599186097-18599-1-git-send-email-zhangshaokun@hisilicon.com
State New, archived
Headers show
Series drivers/perf: hisi: Add missing include of linux/module.h | expand

Commit Message

Shaokun Zhang Sept. 4, 2020, 2:21 a.m. UTC
MODULE_*** is used in HiSilicon uncore PMU drivers and is provided by
linux/module.h, but the header file is not directly included. Add the
missing include.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/perf/hisilicon/hisi_uncore_pmu.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Will Deacon Sept. 7, 2020, 4:05 p.m. UTC | #1
On Fri, 4 Sep 2020 10:21:37 +0800, Shaokun Zhang wrote:
> MODULE_*** is used in HiSilicon uncore PMU drivers and is provided by
> linux/module.h, but the header file is not directly included. Add the
> missing include.

Applied to will (for-next/perf), thanks!

[1/1] drivers/perf: hisi: Add missing include of linux/module.h
      https://git.kernel.org/will/c/d51eb416fa11

Cheers,
diff mbox series

Patch

diff --git a/drivers/perf/hisilicon/hisi_uncore_pmu.h b/drivers/perf/hisilicon/hisi_uncore_pmu.h
index 25b0c97b3eb0..b59ec22169ab 100644
--- a/drivers/perf/hisilicon/hisi_uncore_pmu.h
+++ b/drivers/perf/hisilicon/hisi_uncore_pmu.h
@@ -14,6 +14,7 @@ 
 #include <linux/cpumask.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/perf_event.h>
 #include <linux/types.h>