perf: xgene: Include module.h
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 25 Jan 2017 23:46:58 +0000 (15:46 -0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 3 Feb 2017 18:46:47 +0000 (18:46 +0000)
I ran into a build error when I disabled CONFIG_ACPI and tried to
compile this driver:

drivers/perf/xgene_pmu.c:1242:1: warning: data definition has no type or storage class
 MODULE_DEVICE_TABLE(of, xgene_pmu_of_match);
 ^
drivers/perf/xgene_pmu.c:1242:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]

Include module.h for the MODULE_DEVICE_TABLE macro that's
implicitly included through ACPI.

Tested-by: Tai Nguyen <ttnguyen@apm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/xgene_pmu.c

index a8ac4bcef2c04ad19247a27764f798726bc68892..35b5289bc5da355c5bef50d74113c49e7c8205dc 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/mfd/syscon.h>
+#include <linux/module.h>
 #include <linux/of_address.h>
 #include <linux/of_fdt.h>
 #include <linux/of_irq.h>